plotting two different graphs
Show older comments
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
More Answers (1)
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);
plot(1:30);
subplot(1, 2, 2);
plot(200:247);
Categories
Find more on Line Plots 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!