标签: matlab parfor
基于以下代码和运行结果,似乎parfor根本不与执行并行。这是因为matlab中有一些秘密设置可以启用此parfor功能吗?
>> tic; for i = 1 : 4 pause(3); end toc; Elapsed time is 12.039229 seconds. >> tic; parfor i = 1 : 4 pause(3); end toc; Elapsed time is 12.046663 seconds.