How to display the calcution process with progress bar?
123 次查看(过去 30 天)
显示 更早的评论
I make my task with GUI, and to display the result i wait until 1 minute. to monitoring the program running periode , i want make progress bar. How to display the calcution progress with progress bar?
0 个评论
采纳的回答
David Sanchez
2013-5-27
Is this what you are looking for?
h = waitbar(0,'Please wait...');
steps = 1000;
for step = 1:steps
% computations take place here
waitbar(step / steps)
end
close(h)
Adapt it to your needs
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!