progbar

版本 1.3.0.0 (6.9 KB) 作者: Ben Mitch
progbar.m: general purpose progress bar for MATLAB
8.8K 次下载
更新时间 2010/5/13

查看许可证

编者注: This file was selected as MATLAB Central Pick of the Week

This is a script based progress bar for MATLAB, simple usage is very simple, more complex usage is available. multiple instances no problem.

NOTE: special consideration has been given to not slowing down your hyper-optimised loops, so you should find this better than the sort of progress bar you get for free in a box of cereal.

NOTE: updated 12/05/2010 to be even better (twice as good) at not slowing down your loops. i think i really need to get a life.

typical usage:
--------------
info.color='red';
info.title='hard work';
p=progbar(info);
for n=1:1000
% do hard work here...
progbar(p,n/1000*100);
end
progbar(p,-1);

引用格式

Ben Mitch (2024). progbar (https://www.mathworks.com/matlabcentral/fileexchange/869-progbar), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R14
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Dialog Boxes 的更多信息
致谢

启发作品: progressbar

Community Treasure Hunt

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

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

slight appearance upgrade

1.1.0.0

Improved performance (twice as fast) in tight loops (inspired by comments from Bob Bemis).

1.0.0.0

Some people complained that progbar doesn't recognise colour codes. Well, it's not supposed to, unless you have the colour tool "rgb.m" on your path as well (see the help). This update simply adds "rgb.m".