txtprogressbar

show simulation progress and remaining time as text

您现在正在关注此提交

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

引用格式

Bogdan Cristea Eugen (2026). txtprogressbar (https://ww2.mathworks.cn/matlabcentral/fileexchange/15030-txtprogressbar), MATLAB Central File Exchange. 检索时间: .

致谢

参考作品: progressbar

启发作品: Autoscaleit

类别

Help CenterMATLAB Answers 中查找有关 Startup and Shutdown 的更多信息

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.0.0.0

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