File Exchange

image thumbnail


version (23 KB) by David Snyder
Display multiple waitbars in a single figure.

1 Download

Updated 01 Jul 2013

View Version History

View License

MultiWaitBar creates a one or two-dimensional grid of waitbars in a single figure window. Titles and bar colors can be individually modified. Each bar is an instance of the WaitBarAxes class. The WaitBarAxes objects can be passed to functions or objects for updates without knowledge of their position in the grid. This download includes MultiWaitBar.m, WaitBarAxes.m and two demonstration programs. Thanks to Sviatoslav Danylenko for suggestions.

Cite As

David Snyder (2021). MultiWaitBar (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (3)

Jan Keller

No remaining time estimation, otherwise cool.

Eddie Smo

Hi David,

I really like your app, and I also have some suggestions that I have implemented on my end successfully:

1) Added options to change the figure title, icon, etc.
2) Added the command 'CloseLast' which closes the last panel that was added.
3) Support multi-line labels.
4) refer to panels by their numbers (i.e. multiWaitbar(3, 'Close');

Finally, I think I have found a bug:
The callback for the panel cancel button is defined once, when the panel is created. Later, if the label is renamed using the 'Relabel' command, the cancel button stops working. I have fixed it on my end by adding the line:

entries(idx).Label = values{ii};
set(entries(idx).CancelButton, 'Callback',@(src,evt) iCancelEntry(src, entries(idx).Label))

Again, your app is great, and I would gladly give it a 5 with just some minor improvements :)

Sviatoslav Danylenko

Hello, David

Your MultiWaitBar is cool, but I found one issue on linux. It's continuously steals focus from other windows. To avoid this you can remove string with 'axes()' in `WaitBarAxes` class. And than you should add string `drawnow` after before 'if ~self.isVisible'


MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!