Progress Dialog

版本 1.0.0.0 (4.7 KB) 作者: Felix Ruhnow
Novel progress dialog without using drawnow function, which is optimized for minimal CPU usage.
761.0 次下载
更新时间 2013/8/7

查看许可证

Progressdlg creates or updates an existing progress dialog that reports on the progress of a task including the estimated time remaining as well as a button to cancel the task. It does not use drawnow in order to improve performance when using one or several other figures (drawnow refreshes all graphics objects in all figures).

Syntax:
progressdlg creates default progress dialog

progressdlg('message'); creates default progress dialog with custom message

progressdlg(n); creates default progress dialog with initial value n or updates existing progress dialog to value n

progressdlg(n,'message'); creates default progress dialog with message and value n or updates existing progress dialog to value n and message

progressdlg('PropertyName',PropertyValue,...); creates or updates progress dialog with properties PropertyName/PropertyValue

handle = progressdlg(...); returns the handle to the progress dialog
handle is empty if user aborted by pressing cancel

See help progressdlg for examples and PropertyName/PropertyValue

Notes:
1) Does not use drawnow to refresh the progress bar in order to improve performance, especially when using one or several additional figures with many graphics objects.
2) Performance is slightly decreased when using the remaining time estimation and/or cancel button

Warning:
This code heavily relies on undocumented and unsupported Matlab functionality. It works on Matlab 7+, but use at your own risk!

引用格式

Felix Ruhnow (2024). Progress Dialog (https://www.mathworks.com/matlabcentral/fileexchange/42990-progress-dialog), MATLAB Central File Exchange. 检索时间: .

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

参考作品: WORKBAR, statusbar

Community Treasure Hunt

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

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