ASCII ProgresBar (included elapsed/estimated time)

Prints a graphical progress bar to the console showing percent complete + elapsed and remaining time
205 Downloads
Updated 17 Dec 2012

View License

Uses the command window to show a progress bar, plus how long the computation has taken, and the estimated time remaining. All on one line, so there's less flicker.

Example:

steps = 500;
progbar = progressBar(steps,'Rendering');

for tmp = 1:steps
progbar(tmp);
pause(.01)
end

Would probably work all the way back to matlab 6.5 if it didn't use multi-line comments in the description.

Cite As

Alan Robinson (2024). ASCII ProgresBar (included elapsed/estimated time) (https://www.mathworks.com/matlabcentral/fileexchange/39513-ascii-progresbar-included-elapsed-estimated-time), MATLAB Central File Exchange. Retrieved .

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

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0