save figure as .mat to a different folder
조회 수: 32 (최근 30일)
이전 댓글 표시
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
Jan
2013년 8월 8일
Instead of the vague "nothing works" it is better to explain what happened instead. Most of all the error message would reveal the problems.
채택된 답변
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 File Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!