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!