image thumbnail


version (1.83 KB) by Francisco de Castro
TPROGRESS shows progress of multiple processes as text on the command window


Updated 10 Sep 2012

View License

TPROGRESS(p) shows the percent completed of a process directly on
the command window as a %. 'p' must be a proportion (0 to 1). A text string
can be supplied as optional argument. It can handle multiple counters,
just make 'p' a vector and (if used) the optional text string a cell
array. All 'p' should start at 0 and end at 1 for it to work correctly.

This a minimalistic function with simplicity and speed in mind.
Not many options, no argument check. No initialization necessary.

M= 5; N= 25;
for m= 0:M
for n= 0:N
pause(0.02) % substitute here your code
tprogress([n/N,m/M],{'First ';'Secnd '})

Inspired by: tprogressbar, Paul Proteus

Cite As

Francisco de Castro (2022). TPROGRESS (, MATLAB Central File Exchange. Retrieved .

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