progressbar

版本 1.2.0.0 (4.6 KB) 作者: Steve Hoelzer
Simple, efficient, and user friendly replacement for waitbar.
27.1K 次下载
更新时间 2010/10/8

查看许可证

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

This implementation of progressbar is intended to be extremely simple to use while providing a high quality user experience.

Features:
- Can add progressbar to existing m-files with a single line of code.
- Supports multiple bars in one figure to show progress of nested loops.
- Optional labels on bars.
- Figure closes automatically when task is complete.
- Only one figure can exist so old figures don't clutter the desktop.
- Remaining time estimate is accurate even if the figure gets closed.
- Minimal execution time. Won't slow down code.
- Randomized color. When a programmer gets bored...

Demo:
n = 1000;
progressbar % Create figure and set starting time
for i = 1:n
pause(0.01) % Do something important
progressbar(i/n) % Update figure
end

引用格式

Steve Hoelzer (2024). progressbar (https://www.mathworks.com/matlabcentral/fileexchange/6922-progressbar), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2010a
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

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

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

Major overhaul to support multiple bars and add labels.

1.1.0.0

Major overhaul to support multiple bars and add labels.

1.0.0.0