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!