printcount
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
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Versions that use the GitHub default branch cannot be downloaded
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |
|