when plotting using a master file from 2 different file, the two plots from the 2 different files appear on the same figure?

6 Ansichten (letzte 30 Tage)
how do i clear the first plot so the the second plot appears by itself.

Antworten (1)

Walter Roberson
Walter Roberson am 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.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by