MATLAB: Batch inside a Batch

batchclustermatlabpool

Hi everyone, I am interesting in check the performance of a program by using different cores in a cluster. To submit my function to de cluster I write something like: job= batch('my_script','matlabpool',8)
and in my_script I have something like job=batch('other_script','matlabpool',5)
but I do not obtain and answer from the cluster because it is too much long or maybe it structure is not allow.
Do someone know a more effective way?
Thanks in advance. Rafa

Best Answer

It seems like you are not allowed to change the pool size on the cluster. You can see the effect of the number of cores by changing the allocated workers in a parallel for loop like this
parfor(i=1:100,W)
and then you change W to the number of workers (cores/threads) you want to test