hey please tell me how to add a wait bar or any animated GIF for wait bar in app designer?

20 ビュー (過去 30 日間)
I am using matlab 2017a and want to run waitbar in parallel of task which is processing and delete the wait bar after processing ends. Thanks in advance

採用された回答

Addy
Addy 2018 年 10 月 29 日
編集済み: Addy 2018 年 10 月 29 日
Hi,
you can create a wait bar like the following way.
Initiate the waitbar before the loop.
Include the waitbar line inside the loop to update for the loop's iteration...
x=1:50;
xbar=waitbar(0,'Animation Start');
for i=1:length(x)
waitbar(i/length(x),xbar,strcat('In progress (',string(i/length(x)*100),'%)'));
end
close(xbar)
So the result is....
and during the animation it will show the progress in percentage...
and will close automatically when the loop has stopped.
I hope this helps
  1 件のコメント
shahzeb ali
shahzeb ali 2018 年 10 月 29 日
Thanks for your answer Addy i will try this later hope this will works Insha Allah

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by