progress bar

This function print on your command window a handmade progress bar.
1,2K Downloads
Aktualisiert 12. Mai 2009

Lizenz anzeigen

If you have a time consuming loop, you can measure the time to end with this function. The only thing you have to know is the total number of loops to do.
For instance if you use:
>>for j = 1:10^6
>>statement;
>>progress_bar(j, 10^6);
>>end
you get the same result in screenshot.

Zitieren als

Giuliano Langella (2026). progress bar (https://de.mathworks.com/matlabcentral/fileexchange/23892-progress-bar), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R2007a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu App Building finden Sie in Help Center und MATLAB Answers
Version Veröffentlicht Versionshinweise
1.1.0.0

A third optional input parameter is added. it is useful if embedding the progress_bar function within another function in order to visualize for instance its name (e.g. see screenshot).

1.0.0.0