A Simple Progress Bar

A Simple progress bar made by using the matlab axes and patch objects.
1.5K Downloads
Updated 18 Jun 2009

View License

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
Created with R2007a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Dialog Boxes in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0