I am trying to use parfor to plot some filled rectangles with the following codes for some data x,y,f and a parameter l, this code works fine on serial for loop, when I tried to do it with parfor, it returns an empty figure, how should I resolve this? Thank you!
for i = 1:length(f)
fill( [x(i) x(i)+l x(i)+l x(i)],...
[y(i) y(i) y(i)+l y(i)+l],[0 91 187]/255,'LineStyle','none');hold on;