Clear Filters
Clear Filters

How can i plot the results of two separate m files in same figure window.

1 view (last 30 days)
I want to do this for comparative purpose

Answers (1)

Azzi Abdelmalek
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)

Categories

Find more on Graphics Object Identification 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!