image thumbnail

Command-line progress bar (waitbar)

version (977 Bytes) by Ita Katz
Command-line equivalent of matlab's "waitbar"


Updated 02 May 2016

View License

Matlab's "waitbar" is useful for tracking the progress of for-loops. However, it is not available when no GUI is used, and in addition, from my experience, it can be a run-time bottleneck if called many times. This file provides a textual equivalent to the waitbar, which works without GUI, and without flooding the commandline with many "printf"s.
Use example:
pb = CmdLineProgressBar('Doing stuff...');
for k = 1 : 10
% do stuff

Cite As

Ita Katz (2022). Command-line progress bar (waitbar) (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014a
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!