Save image for each iteration

10 vues (au cours des 30 derniers jours)
Arjun
Arjun le 15 Juin 2014
Commenté : Arjun le 16 Juin 2014
how do I save image for each iteration for any graphs to a certain file

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 15 Juin 2014
for k=1:3
% your code
FileName=sprintf('fig%d.jpg',k)
saveas(gcf,FileName)
end
  1 commentaire
Arjun
Arjun le 16 Juin 2014
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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by