How to save multiple Matlab figures in separate folders?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Fangjun Jiang
el 4 de Abr. de 2018
Editada: Fangjun Jiang
el 4 de Abr. de 2018
use fullfile() to specify the full path of the file and saveas().
3 comentarios
Fangjun Jiang
el 4 de Abr. de 2018
Fig=plot(rand(1,10));
File=fullfile('c:\MyDirectory','FolderA','MyFigure.fig');
saveas(Fig,File,'fig');
Ver también
Categorías
Más información sobre Printing and Saving en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!