How to save multiple Matlab figures in separate folders?
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi,
I want to save each of multiple figures in separate folders.. What is the command that I can use?
For example: file1.fig will be saved in A folder, file2.fig will be saved in B folder.
How can I do this?
Thanks a lot..
댓글 수: 0
답변 (1개)
Fangjun Jiang
2018년 4월 4일
편집: Fangjun Jiang
2018년 4월 4일
use fullfile() to specify the full path of the file and saveas().
댓글 수: 3
Fangjun Jiang
2018년 4월 4일
Fig=plot(rand(1,10));
File=fullfile('c:\MyDirectory','FolderA','MyFigure.fig');
saveas(Fig,File,'fig');
참고 항목
카테고리
Help Center 및 File Exchange에서 Printing and Saving에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!