How can i plot the results of two separate m files in same figure window.
1 view (last 30 days)
Show older comments
I want to do this for comparative purpose
1 Comment
Walter Roberson
on 19 Nov 2013
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.
Answers (1)
Azzi Abdelmalek
on 19 Nov 2013
plot(x1,y1,x2,y2)
%or
plot(x1,y1)
hold on
plot(x2,y2)
hold off
%or
plotyy(x1,y1,x2,y2)
0 Comments
See Also
Categories
Find more on Interactive Control and Callbacks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!