A Simple Progress Bar
Progress bar becomes very essential in case of the functions which consume very long time for computations. This package consists of a Matlab figure along with its corresponding m file. Inside the m file you can see how the patch object can be used along with an existing axes to create a progress bar. There are 3 important things for creating the progress bar with existing axes.
1. to set the buttondown function of the axes to be used , current figure and the patch. (changecolor function is the buttondown function here)
2. change Facecolor of patch. (changecolor function)
3. update the xData of the patch and use drawnow command to reflect the color change on the axes being used.
when you hit the start button the axes and the corresponding text become visible and according to a for loop written inside the start button callback function the progress bar is updated.
Cite As
Shameemraj Nadaf (2024). A Simple Progress Bar (https://www.mathworks.com/matlabcentral/fileexchange/24471-a-simple-progress-bar), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |