parfor_progressbar

バージョン 2.13.0.0 (4.97 KB) 作成者: Daniel Terry
Graphically monitors the completion of iterations in a parfor loop
ダウンロード: 1.8K
更新 2016/1/29

ライセンスの表示

Creates a graphical progress indicator to monitor the completion of iterations in a long-running loop. The usage is similar to MATLAB's built in waitbar function, but it works with parfor loops in addition to ordinary for loops. A temporary file is written to by worker threads to record the completion of each parfor iteration and a timer periodically updates the progress bar. Through optional arguments that are passed to waitbar internally, the user can set a cancel button or any other option that waitbar supports. For now, only local execution is supported, but the function can be modified to replace tempdir with a location accessible by all workers.
Example usage:

N=50; %total number of parfor iterations
hbar = parfor_progressbar(N,'Please wait...'); %create the progress bar
parfor i=1:N,
pause(rand); % computation
hbar.iterate(1); % update progress by one iteration
end
close(hbar); % close the progress bar

引用

Daniel Terry (2024). parfor_progressbar (https://www.mathworks.com/matlabcentral/fileexchange/53773-parfor_progressbar), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2014a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersParallel for-Loops (parfor) についてさらに検索
謝辞

ヒントを得たファイル: Progress monitor (progress bar) that works with parfor

ヒントを与えたファイル: BacStalk, BiofilmQ, parfor_progressbar_v1, ParaPIV

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
2.13.0.0

Now supports both MATLAB 2014 and 2015. Using a class instead of graphics handle to fix warnings in worker threads and make it compatible with 2014. If you had a problem with the previous version, please try it again.

2.11.0.0

Added a picture and changed the title to emphasize that this is an extension of the built-in waitbar function.