File Exchange

image thumbnail

printcount

version 1.0.0.0 (145 KB) by Bob Spunt
Print formatted progress count to command window in single line

1 Download

Updated 17 Aug 2015

GitHub view license on GitHub

This will iteratively print and update the value of some count (e.g., loop size) to a single line on the command window.
USAGE: printcount(i, n)
__________________________________________________________________________
INPUTS
i: current count
n: total count
__________________________________________________________________________
EXAMPLE USAGE
myarray = 1:42;
fprintf('Count: ');
for i = 1:length(myarray)
printcount(i, length(myarray));
pause(.1);
end
fprintf('\n');

Cite As

Bob Spunt (2020). printcount (https://github.com/spunt/printcount), GitHub. Retrieved .

Comments and Ratings (0)

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