Reopen a figure saved in a struct
Show older comments
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 Comments
Rik
on 8 Feb 2021
You have stored the handle. Did you close the figure?
Stephen23
on 9 Feb 2021
BdS' incorrectly posted "Answer" moved here:
Yes I did. The aim is now to open each figure from the workspace separately.
Stephen23
on 9 Feb 2021
Rather than using cell2mat it is simpler and more efficient to use the correct indexing, e.g.:
PGRet(5).(UniverseName{1})
Accepted Answer
More Answers (0)
Categories
Find more on Structures in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!