progress_bar
Displays the progress of the loop that it was called in
NOTE: tic needs to be called at the beginning of the loop
NOTE: progress_bar() needs to be called at the end of the loop
INPUTS:
iter: the loop index number
iter_total: the total # of iterations in the loop
OUTPUTS:
the command window will display something similar to
>>>====== 31% complete 15/47 20 secs left
USAGE EXAMPLE:
len = 47;
for i = 1:len
tic;
A = rand(500);
a = eigs(A);
progress_bar(i, len);
end
Author: Varsha Shankar
04 Dec 2013
Cite As
Varsha Shankar (2024). progress_bar (https://www.mathworks.com/matlabcentral/fileexchange/44601-progress_bar), MATLAB Central File Exchange. 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.