I have Matlab R2012b for Ubuntu 64 bits. I have a Intel Core i3 CPU M 330 @ 2.13GHz × 4.
I want to use parfor to parallelize 4 loops at same time. Becau
To programmatically change the value of NumWorkers from 2 to 4 of the local cluster profile, you can use:
NumWorkers
local
myCluster = parcluster('local'); myCluster.NumWorkers = 4; % 'Modified' property now TRUE saveProfile(myCluster); % 'local' profile now updated, % 'Modified' property now FALSE