How to indicate that GUI is busy running?
古いコメントを表示
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.
採用された回答
その他の回答 (3 件)
Kyle
2011 年 7 月 12 日
0 投票
1 件のコメント
Sean de Wolski
2011 年 7 月 12 日
You have to manually update waitbar - look at the example in
doc waitbar
Aash
2018 年 5 月 9 日
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 件のコメント
Ahmer Shahid
2019 年 1 月 13 日
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
2020 年 6 月 12 日
isn't handles a GUIDE only graphics structure. For APP designer it should be App.Figure1.
Jan Siegmund
2020 年 7 月 8 日
編集済み: Jan Siegmund
2020 年 8 月 31 日
0 投票
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.

カテゴリ
ヘルプ センター および File Exchange で App Building についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!