Print formatted progress count to command window in single line
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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 (2026). printcount (https://github.com/spunt/printcount), GitHub. Retrieved .
General Information
- Version 1.0.0.0 (654 Bytes)
-
View License on GitHub
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
Versions that use the GitHub default branch cannot be downloaded
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
