save multiple gui window in appdesigner

Hi,
I am using appdesigner, In the callback of "RUN" button I have called one .m file which is executing perfectly and it creates multiple graphs in different pop up windows.
I want to use "SAVE" button to save all the multiple popup windows in user specified path.
Any help is appreciated. Thanks

1 件のコメント

Rik
Rik 2021 年 7 月 28 日
How exactly is this question different from your previous one?

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

回答 (1 件)

Adam Danz
Adam Danz 2021 年 7 月 28 日

0 投票

  1. In the m-file, before creating the first figure, store a list of pre-existing figures. Hint: findobj(0,'type','figure')
  2. After creating the last figure, create a second list of all existing figures.
  3. Compare the two vectors of figure handles using ismember to get a list of all new figures generated while running the m-file.
  4. Use uigetdir to allow the user to select a directory, then loop through each figure and saveas().

2 件のコメント

Harish M Y
Harish M Y 2021 年 7 月 29 日
Thanks for the input. Let me try the same
Adam Danz
Adam Danz 2021 年 7 月 29 日
編集済み: Adam Danz 2021 年 8 月 3 日
If you get stuck, share the relevant code in a comment and describe the problem so we can help you get un-stuck. Good luck.

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

カテゴリ

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

質問済み:

2021 年 7 月 28 日

編集済み:

2021 年 8 月 3 日

Community Treasure Hunt

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

Start Hunting!

Translated by