Multiple Figures from Functions

Hello, I have a function that produces two figures when it is run. However, in my execution script, I intend to run this function twice ultimately producing 4 figures. How can I stop the second run of the function overwriting the previous 2 figures?

回答 (1 件)

Ameer Hamza
Ameer Hamza 2020 年 11 月 25 日

0 投票

In the function, you will have statements like
figure(n); % n can be any number
Replace it with
figure()

1 件のコメント

Fin Christie
Fin Christie 2020 年 11 月 25 日
Sorry, this did not solve the issue unfortunately - thanks for your help though

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

カテゴリ

ヘルプ センター および File ExchangeGraphics Objects についてさらに検索

製品

質問済み:

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