Save image for each iteration

1 visualización (últimos 30 días)
Arjun
Arjun el 15 de Jun. de 2014
Comentada: Arjun el 16 de Jun. de 2014
how do I save image for each iteration for any graphs to a certain file

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Images en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by