Community Profile


Da Bu

Last seen: 7 months ago Active since 2021


  • First Answer
  • First Review

View badges

Content Feed

View by

Adding variable values into legend
Maybe this code can help you: x = 1:.1:3; colors = jet(5); for n = 1:5 plot(x,sin(x)*n,'color',colors(n,:),'DisplayNam...

1 year ago | 2

how to do plotting with different colors in same figure?
for a small set of colors, you can use ColorOrderIndex t=1:0.1:2*pi; for i=1:5 plot(t,sin(t)*i), hold on ax = gca; ...

1 year ago | 0