Progress monitor (progress bar) that works with parfor
Updated 25 Oct 2011
Monitoring the progress of a long-running parfor loop is not straightforward because the workers cannot communicate. This function gets around that limitation by storing the progress in a text file.
N = 100;
parfor_progress(N); % Initialize
pause(rand); % Replace with real code
parfor_progress; % Count
parfor_progress(0); % Clean up
Jeremy (2023). Progress monitor (progress bar) that works with parfor (https://www.mathworks.com/matlabcentral/fileexchange/32101-progress-monitor-progress-bar-that-works-with-parfor), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
- Parallel Computing > Parallel Computing Toolbox > Parallel for-Loops (parfor) >
- Parallel Computing > Parallel Computing Toolbox > Performance Profiling >
Inspired: ParforProgress class, parwaitbar, parfor_progressbar_v1, TimedProgressBar, parfor_progressbar, Progress bar for matlab loops (incl. parfor), Sparse Grid Interpolation
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.