progress_bar

Easily shows a text or GUI progress bar when using a for-loop.
387 Downloads
Updated 26 Jun 2013

View License

progress_bar is a lightweight method of giving a progress and time indication when running an calculation intensive for-loop.
Al that is required is to include the function within the for loop such as:
| for idx=min:max
| progress_bar(idx, min, max);
| pause(0.05);
| end

Additional options include a custom message, or a GUI progress bar using waitbar.

The time added to your calculation depends on the intensity of the calculation done in each iteration and the number of iteration and is typically less than 1% for the default text version.

Cite As

Dirk Wagenaar (2024). progress_bar (https://www.mathworks.com/matlabcentral/fileexchange/42360-progress_bar), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Dialog Boxes in Help Center and MATLAB Answers
Tags Add Tags

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