how to plot the curve in matlab

1 次查看(过去 30 天)
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')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Interpolation 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by