How to indicate that GUI is busy running?
Ältere Kommentare anzeigen
I would like to know how to indicate in my GUI that MATLAB is currently busy running some piece of code (e.g. a long computation). Currently, there is no indication in the GUI that the code is running, causing the user to wonder whether it is working or just not responsive.
Akzeptierte Antwort
Weitere Antworten (3)
Kyle
am 12 Jul. 2011
0 Stimmen
1 Kommentar
Sean de Wolski
am 12 Jul. 2011
You have to manually update waitbar - look at the example in
doc waitbar
Aash
am 9 Mai 2018
My pointer is changing to the loading while computation but it isnt coming back to the orignal arrow after the code stops executing. Here is my code
oldpointer = get(handles.figure1, 'pointer');
set(handles.figure1, 'pointer', 'watch')
drawnow;
%code that runs
set(handles.figure1, 'pointer', oldpointer)
2 Kommentare
Ahmer Shahid
am 13 Jan. 2019
How can I use this in app designer?
it's giving me error.
Error using matlab.ui.Figure/set
Functionality not supported with figures created with the uifigure function. For more information, see Graphics Support in App Designer.
syed Rahim
am 12 Jun. 2020
isn't handles a GUIDE only graphics structure. For APP designer it should be App.Figure1.
Jan Siegmund
am 8 Jul. 2020
Bearbeitet: Jan Siegmund
am 31 Aug. 2020
0 Stimmen
Users that looked for a waitbar style solution should have a look at https://de.mathworks.com/help/matlab/ref/uiprogressdlg.html which is basically waitbar but with an up to date look.

Kategorien
Mehr zu App Building finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!