Save image for each iteration

조회 수: 1 (최근 30일)
Arjun
Arjun 2014년 6월 15일
댓글: Arjun 2014년 6월 16일
how do I save image for each iteration for any graphs to a certain file

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2014년 6월 15일
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개)

카테고리

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