how do I save image for each iteration for any graphs to a certain file

 채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2014년 6월 15일

0 개 추천

for k=1:3
% your code
FileName=sprintf('fig%d.jpg',k)
saveas(gcf,FileName)
end

댓글 수: 1

Arjun
Arjun 2014년 6월 16일
k = 1:3 is the number of iteration? so if i have multiple iteration, i just hv to calculate the total iteration? where the file will be saved? tq

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

질문:

2014년 6월 15일

댓글:

2014년 6월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by