parfor shows an empty figure

1 view (last 30 days)
J T
J T on 17 Dec 2019
Commented: J T on 17 Dec 2019
Hello,
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!
figure();
for i = 1:length(f)
if f(i)==1
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;
end
end
  6 Comments
J T
J T on 17 Dec 2019
Thanks! Good to learn!

Sign in to comment.

Answers (0)

Products


Release

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by