Clear Filters
Clear Filters

plotting two different graphs

44 views (last 30 days)
lowcalorie on 13 May 2012
Commented: Walter Roberson on 14 Jun 2020
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

Accepted Answer

Srinivas on 13 May 2012
help figure
is this what you want
MILAN Barot on 14 Jun 2020
how to plot two spereate graphs in a single window
Walter Roberson
Walter Roberson on 14 Jun 2020
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.

Sign in to comment.

More Answers (1)

Image Analyst
Image Analyst on 13 May 2012
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);
subplot(1, 2, 2);


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!