Saving a structure with the title of a plot as name
8 views (last 30 days)
Show older comments
Answered: Claudius Simon Appel on 12 Jun 2020
I am currently trying to get get a function that will both save a newly created figure as a .fig-file with it's title being the file name. That works so far.
However, aside from that, the structure that includes all data used for creating the figure should also be saved under the same name. With this second part, I have troubles.
Is there a way to achieve this? It would surprise me if there isn't a way to do this.
% Savefig saves the newly created figure as a .fig-file named after the
% title of the figure. The saved figure is still editable afterwards.
warning('Error occured.\nCan''t save a figure without title. Please set title before calling [Savefigfun]','class(n)')
% created by Claudius Appel.
Have a great day & stay safe
More Answers (0)
Find more on Dialog Boxes 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!