Multi progress bar
by Ben Tordoff
04 Feb 2010
(Updated 27 Jun 2013)
A new "shiny" progress-bar with multiple bars in a single window, time-estimates and more.
|
Watch this File
|
| File Information |
| Description |
This function provides a new progress-bar (waitbar in MATLAB-speak) with the following features:
* Multiple bars in one window
* Robust to the window being closed
* Time-estimates for long-running tasks
* Completion percentage for long-running tasks
* Control of the color for each bar
* Textured bars (pointless, but nice)
* No need to keep/manage window handles
* Cancel tasks using a return flag or callback function
* "Busy mode" where a bar bounces back and forth
Note that this incurs roughly the same computational overhead as the built-in WAITBAR for low numbers of iterations and usually less overhead for high numbers of iterations.
Requires MATLAB R2009a or above. |
| Acknowledgements |
This file inspired
Gpu Bench.
|
| MATLAB release |
MATLAB 7.9 (R2009b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 12 May 2010 |
2010-05-12: Significant (~20%) speed improvement |
| 18 Jun 2010 |
Fix highlight markers at 10% intervals (were wrong way round)
Shade background |
| 29 Jul 2010 |
* Add ability to cancel using return flag or callback function
* Don't lose bar properties if the window gets closed
* Prevent the window being accidentally clobbered |
| 23 Aug 2010 |
* Don't grab focus unless currently hidden |
| 26 Jun 2012 |
This update should hopefully fix some of the long-standing graphical glitches when moving or resizing the window. Thanks to Igor for testing this! |
| 21 Dec 2012 |
* Add ability to set a bar into "busy" mode where it bounces back and forth
|
| 08 Jan 2013 |
* Don't update text labels if bar didn't move. This gives around a 20% speed-up in some cases.
|
| 27 Jun 2013 |
* Fix updating of percentage indication
* Fix ResetCancel command
|
|
Contact us