txtprogressbar

show simulation progress and remaining time as text

Vous suivez désormais cette soumission

This program is a text version of the "progressbar" program written by Steve Hoelzer. I have found this program useful when using Matlab in console mode (under Linux) for long simulations (usually several hours). I use to launch Matlab in the background with the following command:

nohup matlab -nojvm -nosplash -nodesktop < my_program.m &

All text output is directed to nohup.out file, which can be tested periodically with: "tail -f nohup.out". Using "nohup" has also the advantage that Matlab continues to run after the user is logged out.

Usage example of "txtprogressbar":
n = 1000;
txtprogressbar % Set starting time
for i = 1:n
pause(0.01) % Do something important
txtprogressbar(i/n) % Update text
end

Citation pour cette source

Bogdan Cristea Eugen (2026). txtprogressbar (https://fr.mathworks.com/matlabcentral/fileexchange/15030-txtprogressbar), MATLAB Central File Exchange. Extrait(e) le .

Remerciements

Inspiré par : progressbar

A inspiré : Autoscaleit

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et MATLAB Answers

Informations générales

Compatibilité avec les versions de MATLAB

  • Compatible avec toutes les versions

Plateformes compatibles

  • Windows
  • macOS
  • Linux
Version Publié le Notes de version Action
1.0.0.0

help added, now simulation progress has one digit after the decimal point