how do i put different symbols for 1 matrix in plotting?

6 views (last 30 days)
plot(av,'rd'); in this av is the matrix and rd is red and diamond, but how do i put different symbols and color for different row of matrix
  2 Comments

Sign in to comment.

Answers (1)

Kevin Holly
Kevin Holly on 5 Aug 2022
av = rand(4,15);
plot(1:size(av,2),av(1,:),'rd',1:size(av,2),av(2,:),'cs-',1:size(av,2),av(3,:),'*b:',1:size(av,2),av(4,:),'hg--');

Community Treasure Hunt

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

Start Hunting!