matlabpool
has been removed. Use parpool
instead.
parpool
creates a pool of workers on the current cluster
and connects the MATLAB client. It enables the full functionality of the MATLAB
parallel language features including parfor
,
spmd
, and the distributed
function.
Replace occurrences of matlabpool
with
parpool
. In some instances, parpool
uses a different syntax than matlabpool
. For example:
To start a pool using the current cluster profile, replace
matlabpool
with
parpool
.
To query whether a pool exists, replace matlabpool('size') ==
0
with isempty(gcp('nocreate'))
.
To close the current pool, replace matlabpool close
or matlabpool('close')
with
delete(gcp('nocreate'))
.
For further information, see the parpool
and parallel.Pool
reference pages.