Hi,
I have a question about the nested parfor loop. Please see the following codes:
clcclearparfor i=1:3 for j=1:3 if j<2 B(i,j)=j; end endend
The result of this code should be B=[1;1;1], but the Matlab gives B=[1,1,1;1,1,1;1,1,1]. I have been confused by this problem for a long time and thank you in advance if you have some time to look into the problem.
Haonan
Best Answer