How to open multiple figures from multiple scripts simultaneously ?

I am using mesh and scatter plots from different codes and all three codes are doing different things so I cannot combine them into one sigle code all together to complete my task.
I am using MATLAB 2015 and whenever any program reaches the last line which is the line that executes the figure and the plots that I am trying to show it closes the previous figure and open the one from the current script being executed.
How do I stop this from happening?

4 件のコメント

Walter Roberson
Walter Roberson 2020 年 11 月 25 日
Look in the code for any
close all
and delete those.
shridharnator
shridharnator 2020 年 11 月 25 日
Walter this is not working.I tried running the same script without both clear all and close all twice expecting to see the same figure twice. But to no avail.
Walter Roberson
Walter Roberson 2020 年 11 月 25 日
Is the code possibly all using explicit figure numbers such as
figure(1)
shridharnator
shridharnator 2020 年 11 月 25 日
That did the trick. Thanks Walter.

サインインしてコメントする。

回答 (0 件)

カテゴリ

製品

タグ

質問済み:

2020 年 11 月 25 日

コメント済み:

2020 年 11 月 25 日

Community Treasure Hunt

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

Start Hunting!

Translated by