Save image for each iteration
2 views (last 30 days)
Show older comments
how do I save image for each iteration for any graphs to a certain file
0 Comments
Accepted Answer
Azzi Abdelmalek
on 15 Jun 2014
for k=1:3
% your code
FileName=sprintf('fig%d.jpg',k)
saveas(gcf,FileName)
end
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!