How to input multiple lines on a graph
1 回表示 (過去 30 日間)
古いコメントを表示
I imported my data from excel, and i want to compare to different y values on a line graph. How to i add the second y value
採用された回答
Monisha Nalluru
2020 年 10 月 28 日
As a example
x = linspace(-pi,pi);
y1 = sin(x);
y2 = cos(x);
plot(x,y1); % first line
hold on
plot(x,y2); % second line
hold off
0 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!