How to use the current windows for the new plot?

조회 수: 2 (최근 30일)
SC
SC 2019년 2월 9일
댓글: SC 2019년 2월 9일
Hi,
When I run my code, everytime I need to close the current plotting windows, otherwise the next run will pop up a new window for the new plot.
I want to use the current windows for the new plot (I don't need the plot of the previous run), so that I don't need to keep closing the plotting windows.
For example, what i can do so that the 2 new plots will just replace the 2 old plots, instead of popping up a new window?
For example:-
figure
x=1:0.1:6*pi;
plot(x,sin(x));
figure
plot(x,cos(x));
Thx

답변 (1개)

madhan ravi
madhan ravi 2019년 2월 9일
Remove the line figure
  댓글 수: 1
SC
SC 2019년 2월 9일
I have multiple plots for each run. I've amended my question to reflect this. Sorry for confusion.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품


릴리스

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by