For longer operations on your computer, it is practical to inform the user that a calculation is running. For this reason, you can call the 'busyWindow' function. It displays your message to the user.
There are three modes: The busy window with an automatic progress bar, with a manual progress bar and without a progress bar.
If you call the busy window in the 'progressA' mode, a progress bar is shown. The progress bar updates every second, calling a timer which increases the progress for 10%. Because you don't know how long the calculation takes, the progress bar restarts after it is reaching it's 100% end (every ten seconds).
If you call the busy window in the 'progressM' mode, there is also a progress bar shown. But now you have to update the progress manually, similar to the Matlab function 'waitbar'.
When the calculation is finished, you have to remove the busy window manually.
For further information and examples, type 'help busyWindow'.
引用格式
Stiphu (2024). Busy Window (https://www.mathworks.com/matlabcentral/fileexchange/28534-busy-window), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
平台兼容性
Windows macOS Linux类别
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!