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 Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

タグが未入力です。

製品

Community Treasure Hunt

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

Start Hunting!

Translated by