Save image for each iteration

2 次查看(过去 30 天)
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