필터 지우기
필터 지우기

Put each marker on a curve at a different color

조회 수: 2 (최근 30일)
Mary
Mary 2020년 6월 29일
댓글: Mary 2020년 6월 30일
Hi Matlab users,
I have a set of data. I want to have only one legend for this set of data and put each individual point at a different color. Is that possible ? because each color would represent something special.
small example of that would be:
co=jet(10);
plot(x,y,'color',co) such that for each pair x-y, there is a specific color. But this code won't work as Matlab expects only one color after 'color'.
Do you have any idea how my idea can be done ?
Regards,
Mary

채택된 답변

Adam Danz
Adam Danz 2020년 6월 29일

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Legend에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by