User`s guide

Parallel Pools
2-47
If you specify a pool size at the command line, this overrides the setting of your
preferences. But this value must fall within the limits of the applicable cluster
profile.
4
Parallel preferences
If you do not specify a pool size at the command line, MATLAB attempts to start
a parallel pool with a size determined by your parallel preferences, provided that
this value falls within the limits of the applicable cluster profile. Note that this is
a preference, not a requirement or request for a specific number of workers. So if a
pool cannot start with as many workers as called for in your preferences, you get a
smaller pool, without any errors. If you need an exact number of workers, specify the
number at the command line.
For selection of the cluster on which the pool runs, precedence is determined by:
1
The command-line cluster object argument. For example, this overrides the default
profile setting, and uses the cluster identified by the profile 'MyProfile':
c = parcluster('MyProfile');
p = parpool(c);
2
The cluster specified in the default profile:
p = parpool;
See Also
delete | distributed | gcp | parcluster | parfeval | parfor | parpool | spmd
More About
“How Parallel Computing Products Run a Job”
“Introduction to parfor” on page 2-2
“Parallel Preferences”
“Clusters and Cluster Profiles”