Save image for each iteration

 Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 15 de Jun. de 2014

0 votos

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 Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 15 de Jun. de 2014

Comentada:

el 16 de Jun. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by