Fast Progress Display
by Harold Vanicek
09 Feb 2005
(Updated 17 Feb 2005)
The fastest way to show a progress bar is to do it without a gui...this does just that.
|
Watch this File
|
| File Information |
| Description |
GETPCT.M is a function that will allow the user to monitor the progress of their job, without the overhead created with waitbar and other gui type progress bars. It simply will go through 10 20 30 40 50 60 70 80 90..done! on the command line, saving time and still showing you where the process is at.
There are some IF statements in this .m file, but it is a compromise. I could just use an fprintf to the line to be the fastest, but I didn't want multiple 10's or 20's..etc. to show up on the screen...just one of each. So, I created a "block" array that noted when each percent number was used and didn't use it again. This method is clean and still much faster than the gui progress bar. |
| MATLAB release |
MATLAB 7.0.1 (R14SP1)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (2) |
| 15 Feb 2005 |
Jérôme Never Give my Real Name
|
|
|
| 17 Feb 2005 |
Jérôme Never Give my Real Name
|
|
|
| Updates |
| 17 Feb 2005 |
I am updating this file to explain the reasoning for some of the code. |
|
Contact us at files@mathworks.com