Running parfor-Loops
Convert a slow for-loop into a
faster parfor-loop.
Create arrays inside or outside parfor-loops to speed up
code.
Learn about starting and stopping parallel pools, pool size, and cluster
selection.
Specify your preferences, and automatically create a parallel pool.
Discover how to use objects, handles, and sliced variables in
parfor-loops.
All references to variables in parfor-loops must be
visible in the body of the program.
Develop parfor-loops on your desktop, and scale up to a
cluster without changing your code.
You can use parfor-loops to calculate cumulative values
that are updated by each iteration.
Control random number generation in parfor-loops by
assigning a particular substream for each iteration.
This example shows how to use parfor-loops to speed up Monte-Carlo
code.