通过matlabpool命令来启动和配置Matlab并行计算池,但是在matlab2013B的帮助文档中说:
matlabpool will be removed in a future release. Use PARPOOL instead.
所以以后应该使用parpool,先来看看帮助文档是怎么说的
parpool Create a parallel pool of workers on a cluster and return a pool object
pool = parpool creates and returns a pool on the default cluster with its
NumWorkers in the range [1, preferredNumWorkers] for running parallel
language features (parfor, parfeval, parfevalOnAll, spmd, and distributed).
preferredNumWorkers is the value defined in your parallel preferences. Use
delete(pool) to shut down the parallel pool.
pool = parpool(numWorkers) creates and returns a pool with the
specified number of workers. numWorkers can be a positive integer or a
range specified as a 2-element vector of integers. If numWorkers is a
range, the resulting pool has size as large as possible in