I am using Matlab R2013a 64-bit. I am getting an "Index exceeds matrix dimensions" error when using parfor. The following is a minimal code that produces this error.
matlabpool open 4nbig = 200;nsmall = 100;x = rand(3,nsmall);parfor n = 1:nbig if (n <= nsmall) a = x(:,n); else a = zeros(3,1); endendmatlabpool close
I am wondering why this happens. Thanks.
Best Answer