You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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.
Example usage:
N = 100;
parfor_progress(N); % Initialize
parfor i=1:N
pause(rand); % Replace with real code
parfor_progress; % Count
end
parfor_progress(0); % Clean up
Cite As
Jeremy (2026). Progress monitor (progress bar) that works with parfor (https://uk.mathworks.com/matlabcentral/fileexchange/32101-progress-monitor-progress-bar-that-works-with-parfor), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: ParforProgress class, parwaitbar, parfor_progressbar_v1, TimedProgressBar, parfor_progressbar, Progress bar for matlab loops (incl. parfor), Sparse Grid Interpolation
General Information
- Version 1.2.0.0 (2.21 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
