printcount

Version 1.0.0.0 (654 Bytes) by Bob Spunt
Print formatted progress count to command window in single line
93 Downloads
Updated 17 Aug 2015

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 (2024). printcount (https://github.com/spunt/printcount), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Entering Commands in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes
1.0.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.