Command-line progress bar (waitbar)

Command-line equivalent of matlab's "waitbar"

Sie verfolgen jetzt diese Einreichung

Matlab's "waitbar" is useful for tracking the progress of for-loops. However, it is not available when no GUI is used, and in addition, from my experience, it can be a run-time bottleneck if called many times. This file provides a textual equivalent to the waitbar, which works without GUI, and without flooding the commandline with many "printf"s.
Use example:
pb = CmdLineProgressBar('Doing stuff...');
for k = 1 : 10
pb.print(k,10)
% do stuff
end

Zitieren als

Ita Katz (2026). Command-line progress bar (waitbar) (https://de.mathworks.com/matlabcentral/fileexchange/56871-command-line-progress-bar-waitbar), MATLAB Central File Exchange. Abgerufen .

Kategorien

Mehr zu Environment and Settings finden Sie in Help Center und MATLAB Answers

Allgemeine Informationen

Kompatibilität der MATLAB-Version

  • Kompatibel mit allen Versionen

Plattform-Kompatibilität

  • Windows
  • macOS
  • Linux
Version Veröffentlicht Versionshinweise Action
1.0.0.0

updated description