How can I save multiple plots in a specified folder?

12 visualizaciones (últimos 30 días)
Zara Khan
Zara Khan el 3 de Jun. de 2018
Comentada: Harr el 9 de Abr. de 2021
I have drawn major and minor axis over several binary images using a for loop. Now I want to save all these figures in a specified folder and want to off their visibility to the screen .
  1 comentario
Paolo
Paolo el 3 de Jun. de 2018
Can you share your code? You can specify the directory you wish to save to when using saveas.

Iniciar sesión para comentar.

Respuestas (1)

monika shivhare
monika shivhare el 4 de Jun. de 2018
To off visibility of figures on screen
set(0,'DefaultFigureVisible','off')
To save all figures in specified folder,
path='D:\figures\';
saveas(figure(i),fullfile(path,['myPlot' num2str(i) '.jpeg']));
Refer to off visibility link to temporarily off visibility of figures on screen
save to a folder to save your files ion specified folder.

Categorías

Más información sobre Image Processing Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by