Plotting multiple profile and giving those different names using a loop

조회 수: 1 (최근 30일)
SUBROTA HALDER
SUBROTA HALDER 2016년 9월 1일
답변: KSSV 2016년 9월 2일
I have 12 temperature profile (temperature with height) and I want to plot those profile by using a loop and title of each should be January 01, 2015, January 02, 2015 ...... please help me.
  댓글 수: 1
Walter Roberson
Walter Roberson 2016년 9월 1일
How are the profiles stored in variables?
Is the data vector or 2D ?
Are all of the data to be put into the same plot, or is this to create multiple plots?

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

답변 (1개)

KSSV
KSSV 2016년 9월 2일
You can use legends.....
x = -pi:pi/20:pi;
y1 = sin(x);
y2 = cos(x);
plot(x,y1,'-ro',x,y2,'-.b')
legend('sin(x)','cos(x)')

카테고리

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

태그

아직 태그를 입력하지 않았습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by