Save image for each iteration

5 Ansichten (letzte 30 Tage)
Arjun
Arjun am 15 Jun. 2014
Kommentiert: Arjun am 16 Jun. 2014
how do I save image for each iteration for any graphs to a certain file

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by