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

2 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
John D'Errico
John D'Errico on 5 Aug 2022
Edited: John D'Errico on 5 Aug 2022
When you delete your question, you insult the person who bothered to spend their time in answering it, as now the answer is out of context and meaningless. You hurt the site, because now this same person has less incentive to answer questions, and certainly less incentive to anser YOUR questions. You make it impossible for anyone else to learn from the answer.

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--');

Tags

Community Treasure Hunt

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

Start Hunting!