Options for parfor
, such as partitioning iterations
creates a set of options for opts
= parforOptions(cluster
)parfor
that instructs
parfor
to execute statements on workers in
cluster
without creating a parallel pool. Instead,
parfor
submits independent tasks to the cluster to execute the body
of the loop. parfor
partitions and distributes iterations to workers
according to the NumWorkers
property, the number of workers available,
of cluster
.
specifies additional options for use with the cluster object
opts
= parforOptions(cluster
,___,Name,Value
)cluster
.