How can I save multiple plots in a specified folder?

조회 수: 36 (최근 30일)
Zara Khan
Zara Khan 2018년 6월 3일
댓글: Harr 2021년 4월 9일
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
Paolo
Paolo 2018년 6월 3일
Can you share your code? You can specify the directory you wish to save to when using saveas.

댓글을 달려면 로그인하십시오.

답변 (1개)

monika shivhare
monika shivhare 2018년 6월 4일
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.

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by