1. In order to use parallel pool with the cluster, please consider using the 'batch' function procedure to submit the jobs into cluster:
When using the 'batch' command, it has the option to specify the number of workers to be used in addition to the job itself. Please refer to the example below:
c=parcluster('profile');
j = batch(c,@scriptUseParallel, 'Pool', 2);
wait(j);
diary(j);
Y2=fetchOutputs(j);
2. In the cluster setup, please consider to configure each machine to have the same number of workers as the number of cores.
Therefore each core can be started with a MATLAB process and being utilized by the batch job.
Best Answer