plotting two different graphs
24 次查看(过去 30 天)
显示 更早的评论
im using plot to graph one curve but now i need to plot a second curve on a different graph so how can i open 2 graphs from one script
0 个评论
采纳的回答
Srinivas
2012-5-13
help figure
is this what you want
4 个评论
Walter Roberson
2020-6-14
Either use subplot like Image Analyst said, or use "hold on" after drawing the first graph so that the second graph goes into the same axes.
更多回答(1 个)
Image Analyst
2012-5-13
Try subplot(). This will let you have two plots on the same figure so you can see them both at the same time and don't have to keep switching between figures.
subplot(1, 2, 1);
plot(1:30);
subplot(1, 2, 2);
plot(200:247);
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!