TPROGRESS

TPROGRESS shows progress of multiple processes as text on the command window
275.0 次下载
更新时间 2012/9/10

查看许可证

TPROGRESS(p) shows the percent completed of a process directly on
the command window as a %. 'p' must be a proportion (0 to 1). A text string
can be supplied as optional argument. It can handle multiple counters,
just make 'p' a vector and (if used) the optional text string a cell
array. All 'p' should start at 0 and end at 1 for it to work correctly.

This a minimalistic function with simplicity and speed in mind.
Not many options, no argument check. No initialization necessary.

Example:
M= 5; N= 25;
for m= 0:M
for n= 0:N
pause(0.02) % substitute here your code
tprogress([n/N,m/M],{'First ';'Secnd '})
end
end

Inspired by: tprogressbar, Paul Proteus

引用格式

Francisco de Castro (2024). TPROGRESS (https://www.mathworks.com/matlabcentral/fileexchange/37857-tprogress), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2008b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Environment and Settings 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.4.0.0

No need to specify optional string as cell when its only 1

1.3.0.0

Improved summary

1.1.0.0

Correct handling of multiple default prompts

1.0.0.0