Community Profile

photo

Da Bu


Last seen: 3 months ago Active since 2021

Statistics

  • First Answer
  • First Review

View badges

Content Feed

View by

Answered
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

Answered
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