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

조회 수: 6 (최근 30일)
how do i clear the first plot so the the second plot appears by itself.

답변 (1개)

Walter Roberson
Walter Roberson 2013년 11월 17일
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.

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by