how to plot the curve in matlab

7 ビュー (過去 30 日間)
Amy Topaz
Amy Topaz 2022 年 4 月 2 日
コメント済み: Arif Hoq 2022 年 4 月 2 日
How to plot the curve in matlab using the given x and y points. I am looking for the 2 curves on the same plot.
X Y1 Y2
57 78.2 165.1
87 67.06 101.8
107 64.66 88.7
257 61.43 63.58
507 61.45 61.47
1007 60.51 60.91

採用された回答

Arif Hoq
Arif Hoq 2022 年 4 月 2 日
編集済み: Arif Hoq 2022 年 4 月 2 日
A=[57 78.2 165.1
87 67.06 101.8
107 64.66 88.7
257 61.43 63.58
507 61.45 61.47
1007 60.51 60.91];
x=A(:,1);
Y1=A(:,2);
Y2=A(:,3);
plot(x,Y1,x,Y2)
legend('Y1','Y2')
  2 件のコメント
Amy Topaz
Amy Topaz 2022 年 4 月 2 日
Thank you, also how to indicate the points on the curves?
Arif Hoq
Arif Hoq 2022 年 4 月 2 日
try this:
plot(x,Y1,'o-',x,Y2,'d-')

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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