I am a newbie with parfor use. Why does not the following run and give an error?
G=ones(11,11,5) ;parfor i=1:10 v=zeros(1,5); for j=1:5 v(j)=rand(1); end G(i,i,:)=v;end
MATLABparfor error
G=ones(11,11,5) ;parfor i=1:10 v=zeros(1,5); for j=1:5 v(j)=rand(1); end G(i,i,:)=v;end
Best Answer