Control Compilation of parfor-Loops - MATLAB & Simulink (original) (raw)

Main Content

By default, MATLAB® Coder™ generates code that can run the parfor-loop on multiple threads. To treat the parfor-loops as for-loops that run on a single thread, disable parfor with one of these methods:

When to Disable parfor

Disable parfor if you want to:

See Also

parfor

Topics