How can i plot the results of two separate m files in same figure window.
2 次查看(过去 30 天)
显示 更早的评论
I want to do this for comparative purpose
1 个评论
Walter Roberson
2013-11-19
duplicated by http://www.mathworks.co.uk/matlabcentral/answers/106709-how-can-results-of-two-separate-m-files-be-plotted-in-same-figure-window which should be merged with it.
回答(1 个)
Azzi Abdelmalek
2013-11-19
plot(x1,y1,x2,y2)
%or
plot(x1,y1)
hold on
plot(x2,y2)
hold off
%or
plotyy(x1,y1,x2,y2)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interactive Control and Callbacks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!