フィルターのクリア

Reopen a figure saved in a struct

3 ビュー (過去 30 日間)
BdS
BdS 2021 年 2 月 8 日
コメント済み: Stephen23 2021 年 2 月 9 日
Hi there
I have got many figures saved in the workspace as a struct:
PGRet(5).(cell2mat(UniverseName))=figure(1)
How can I open the figure stored with the above mentioned code [cell2mat(UniverseName) = AktCH]
I tried this code:
figure(PGRet(5).AktCH)
But it did not work.
May you help me?
  3 件のコメント
Stephen23
Stephen23 2021 年 2 月 9 日
BdS' incorrectly posted "Answer" moved here:
Yes I did. The aim is now to open each figure from the workspace separately.
Stephen23
Stephen23 2021 年 2 月 9 日
Rather than using cell2mat it is simpler and more efficient to use the correct indexing, e.g.:
PGRet(5).(UniverseName{1})

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

採用された回答

Walter Roberson
Walter Roberson 2021 年 2 月 9 日
You can only get the figures back if you save()'d PGRet(5) to a .mat or .fig file before you closed the figures.
If you did happen to do that, then the figure would be recreated when you loaded PGRet(5) from the file. all of the figures would be recreated at the same time, unless you found a way to reload only part of the file (see matlabFile() )

その他の回答 (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