save figure as .mat to a different folder
Ältere Kommentare anzeigen
Hi, I would like to save a figure as a mat file to a different folder other then the current folder. Simpfied code:
str = sort(get(findobj(0,'Type','figure'),'name'));
[s,v] = listdlg('PromptString','Select a file:',...
'SelectionMode','single',...
'ListString',str);
fig = handle2struct(figure(s));
save('Path to the folder',fig)
I've tried save(['Path'],fig) etc but nothing worked
Thank you
1 Kommentar
Jan
am 8 Aug. 2013
Instead of the vague "nothing works" it is better to explain what happened instead. Most of all the error message would reveal the problems.
Akzeptierte Antwort
Weitere Antworten (1)
Vincent I
am 12 Aug. 2013
Kategorien
Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!