Progress bar (cli, gui, parfor)

バージョン 1.3.1 (12.5 KB) 作成者: HyunGwang Cho
Handy progress bar that can be used in GUI or text interface with parfor compatibility.
ダウンロード: 182
更新 2024/7/10

ライセンスの表示

Handy progress bar that can be used in GUI or text interface.
  • Faster than waitbar (MATLAB builtin)
  • GUI interface
  • Figure automatically closes when the task is complete
  • CLI interface
  • Monospaced fonts are recommended for the CLI interface
  • Parfor compatibility
  • It uses parallel.pool.DataQueue
  • No file I/O, no java class, no undocumented matlab for parallel progress tracking
  • Support for legacy MATLAB releases
  • Standard version: MATLAB 2020b ~ latest
  • Legacy-compatible version: MATLAB 2017a ~ latest
Simple usage
Task name, Parfor
Text based progress bar
Faster than waitbar (MATLAB builtin)
N = 500000;
WB = waitbar(0,'waitbar'); % waitbar (MATLAB builtin)
for n = 1:N, waitbar(n/N,WB); end
close(WB)
PB = ProgressBar(N); % ProgressBar gui
for n = 1:N, PB.count; end
PB = ProgressBar(N, ui='cli'); % ProgressBar cli
for n = 1:N, PB.count; end
Elapsed time @ 2021 MacBook Pro 14" (M1 Pro)
  • waitbar (MATLAB builtin) : 129.17 sec
  • ProgressBar gui : 20.26 sec
  • ProgressBar cli : 18.30 sec

引用

HyunGwang Cho (2024). Progress bar (cli, gui, parfor) (https://www.mathworks.com/matlabcentral/fileexchange/121363-progress-bar-cli-gui-parfor), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2022b
R2017a 以降のリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!

ProgressBar

ProgressBar/for MATLAB 2017a~2020a

バージョン 公開済み リリース ノート
1.3.1

Taskname can be of string type

1.3.0

The no_log option was added.
The syntax of the function has been changed.

1.2.9

Fixed: Inaccurate remaining time

1.2.8

Legacy-compatible version (MATLAB 2017a ~ latest) added

1.2.7

Fixed an error that occurred when there is no parallel computing toolbox.

1.2.6

Fixed bugs in versions prior to R2021a

before
contains(addon_list.Name, "parallel computing toolbox",IgnoreCase=true)
after
contains(addon_list.Name, "parallel computing toolbox",'IgnoreCase',true)

1.2.5

Fixed instability when there is no parallel toolbox.

1.2.4

Error with no parallel toolbox is resolved

1.2.3

Error with no parallel toolbox is resolved

1.2.2

ratio_resol = 0.01;

1.2.1

Performance improvement at non-parfor

1.2.0

Integration of 4 types of progressbar into one.

1.1.2

Edited description.

1.1.1

Main image changed

1.1.0

Extended to 4 types of progress bar

1.0.0