필터 지우기
필터 지우기

with the plot is there possible to write name ?

조회 수: 2 (최근 30일)
RS
RS 2013년 8월 9일
In this plot there are several y values from different files, I want to give names of file with color name I am not able to fine which color represent which file? I want to write file name within plot itself?

채택된 답변

David Sanchez
David Sanchez 2013년 8월 9일
For example: If your plot command goes like:
plot(x1,y1,x2,y2,x3,y3,x4,y4,....); % plotting xith against yith
add the legend in the same order than variables were added into the plot command
legend('var1','var2','var3','var4',...)
You'll see on the legend what colour each pair of variables has on the plot.
  댓글 수: 2
David Sanchez
David Sanchez 2013년 8월 9일
For adding text to your plot, try the text command:
help text
doc text
RS
RS 2013년 8월 9일
편집: RS 2013년 8월 9일
within same image if I want to draw a line that will represent max(yth) value how can I ? and the maximum value of y at legend for all curves?

댓글을 달려면 로그인하십시오.

추가 답변 (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