Borrar filtros
Borrar filtros

How to increment string

12 visualizaciones (últimos 30 días)
Rohan Repale
Rohan Repale el 9 de Abr. de 2013
I wish to do something like this...
for m=1:10,
C=%some array
C=imagesc(A);figure(gcf);
saveas(C,'filename(m).jpg');
end
Can someone help me??
Thanks, Rohan

Respuesta aceptada

Cedric
Cedric el 9 de Abr. de 2013
fname = sprintf('filename(%d).jpg', m) ;
saveas(C, fname) ;

Más respuestas (0)

Categorías

Más información sobre Characters and Strings en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by