Save image for each iteration

2 visualizzazioni (ultimi 30 giorni)
Arjun
Arjun il 15 Giu 2014
Commentato: Arjun il 16 Giu 2014
how do I save image for each iteration for any graphs to a certain file

Risposta accettata

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

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Images in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by