How to use the current windows for the new plot?

1 回表示 (過去 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 Center および File ExchangeGraphics Performance についてさらに検索

製品


リリース

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by