Saving two GUI figures in one MAT file

1 回表示 (過去 30 日間)
Matt
Matt 2016 年 10 月 27 日
コメント済み: Matt 2016 年 10 月 27 日
Hi all,
I am currently saving a single GUI window/figure as a .MAT file (e.g. results_GUI_1)
I use:
  • Uiputfile,
  • Create a full path,
  • Save the handles structure.
This enables me to open the results_GUI_1 window as I left it, without running time consuming code.
I have developed the GUI further though, and now there is another window of results called from the first (call it results_GUI_2). How can I save both in ONE .mat file?
I was intending to:
  • Call results_GUI_2, but set 'Visible' off
  • Save it as a seperate .mat file.
  • When results_GUI_1 is loaded by the user, load the results_GUI_2, again, with 'Visible' off
  • Make results_GUI_2 visible when the user presses the button on results_GUI_1 that brings up results_GUI_2 figure.
But it seems messy... i'm sure there must be a better way.
Thanks in advance,
Matt
  2 件のコメント
Mostafa
Mostafa 2016 年 10 月 27 日
Have you considered using save(FILENAME, ..., '-append') ? This appends the data to the .mat file instead of creating a new one with a new file name
Matt
Matt 2016 年 10 月 27 日
No, I haven't.
Thank you, I will look into that later today and see what I can do.
In the meantime, any more suggestions would be very welcome!

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by