Version (6.86 KB) by Ben Mitch
progbar.m: general purpose progress bar for MATLAB
Updated 13 May 2010

View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

This is a script based progress bar for MATLAB, simple usage is very simple, more complex usage is available. multiple instances no problem.

NOTE: special consideration has been given to not slowing down your hyper-optimised loops, so you should find this better than the sort of progress bar you get for free in a box of cereal.

NOTE: updated 12/05/2010 to be even better (twice as good) at not slowing down your loops. i think i really need to get a life.

typical usage:
info.title='hard work';
for n=1:1000
% do hard work here...

Cite As

Ben Mitch (2024). progbar (, MATLAB Central File Exchange. Retrieved .

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

Inspired: progressbar

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

slight appearance upgrade

Improved performance (twice as fast) in tight loops (inspired by comments from Bob Bemis).

Some people complained that progbar doesn't recognise colour codes. Well, it's not supposed to, unless you have the colour tool "rgb.m" on your path as well (see the help). This update simply adds "rgb.m".