Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 1.06 KB

File metadata and controls

31 lines (21 loc) · 1.06 KB

Parfor progress monitor

A Java-based Matlab class for progress monitoring during a parfor loop

Usage

Begin by creating a parallel pool.

Then construct a ParforProgMon object:

ppm = ParforProgMon(strWindowTitle, nNumIterations <, nProgressStepSize, nWidth, nHeight>);

strWindowTitle is a string containing the title of the progress bar window. nNumIterations is an integer with the total number of iterations in the loop.

Optional arguments

nProgressStepSize specifies to update the progress bar every time this number of steps passes. nWidth and nHeight specify the size of the progress window.

Within the parfor loop:

parfor (nIndex = 1:nNumIterations)
   ppm.increment();
end

Credits

Parfor Progress monitor

Parfor Progress monitor v2