image thumbnail

txtprogressbar

version 1.0.0.0 (2.1 KB) by Bogdan Cristea Eugen
show simulation progress and remaining time as text

1.2K Downloads

Updated 24 May 2007

View License

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

Cite As

Bogdan Cristea Eugen (2021). txtprogressbar (https://www.mathworks.com/matlabcentral/fileexchange/15030-txtprogressbar), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: progressbar

Inspired: Autoscaleit

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!