I have code that generates n number of images (figures). I would like to know if matlab has a command that SAVES ALL figures into predetermined folder, wight the user's specified format (.fig, .pdf, .tiff). I have been out of scientific programing for a while, so this may be a new feature that you have, that I am not aware of, so please forgive me if what I am asking for is a matlab commodity by now.
G

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2014년 7월 19일

1 개 추천

h=findobj('type','figure') % find the handles of the opened figures
folder='E:' % Desination folder
for k=1:numel(h)
filename=sprintf('image%d.jpg',k)
file=fullfile(folder,filename)
saveas(h(k),file)
end

댓글 수: 2

Azzi Abdelmalek
Azzi Abdelmalek 2014년 7월 19일
Guillermo commented
Thank you Azzi - I am not familiar with "handles" as it pertains to what they do, how to use them for diff. circumstances - do you have some reading material that would clarify EXACTLY what they are used for? thanks,

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

카테고리

도움말 센터File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

질문:

2014년 7월 19일

댓글:

2014년 7월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by