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.
warning('Error occured.\nCan''t save a figure without title. Please set title before calling [Savefigfun]','class(n)')
Have a great day & stay safe