Fast Progress Display

The fastest way to show a progress bar is to do it without a gui...this does just that.
1.3K Downloads
Updated 17 Feb 2005

No License

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.

Cite As

Harold Vanicek (2026). Fast Progress Display (https://www.mathworks.com/matlabcentral/fileexchange/6891-fast-progress-display), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP1
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on App Building in Help Center and MATLAB Answers
Version Published Release Notes
1.0.0.0

I am updating this file to explain the reasoning for some of the code.