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'.
Citation pour cette source
Stiphu (2024). Busy Window (https://www.mathworks.com/matlabcentral/fileexchange/28534-busy-window), MATLAB Central File Exchange. Récupéré le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
Version | Publié le | Notes de version | |
---|---|---|---|
1.2.0.0 | The 'progress' mode is now called 'progressA'. Manual progress mode added, called 'progressM'. |
||
1.0.0.0 |