matlab并行是给常简单地,但是有的时候使用parfor并不能开始并行。
命令行如果提示:
Starting parallel pool (parpool) using the 'local' profile ...
Preserving jobs with IDs: 1 because they contain crash dump files.
You can use 'delete(myCluster.Jobs)' to remove all jobs created with profile local. To create 'myCluster' use 'myCluster = parcluster('local')'.
myCluster = parcluster('local');
delete(myCluster.Jobs);
这两行代码即可