How to increment string
12 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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
0 comentarios
Respuesta aceptada
Cedric
el 9 de Abr. de 2013
fname = sprintf('filename(%d).jpg', m) ;
saveas(C, fname) ;
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Characters and Strings en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!