when plotting using a master file from 2 different file, the two plots from the 2 different files appear on the same figure?
6 views (last 30 days)
Show older comments
how do i clear the first plot so the the second plot appears by itself.
0 Comments
Answers (1)
Walter Roberson
on 17 Nov 2013
Insert a figure() call before doing the second plot, if you want both to be visible at the same time.
If you want the second one to replace the first, then before plotting the second, give the command
hold off
Note: if the two are being generated by a single plot() call, then matters get more complicated.
0 Comments
See Also
Categories
Find more on Annotations 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!