Azzera filtri
Azzera filtri

How to increment string

12 visualizzazioni (ultimi 30 giorni)
Rohan Repale
Rohan Repale il 9 Apr 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

Risposta accettata

Cedric
Cedric il 9 Apr 2013
fname = sprintf('filename(%d).jpg', m) ;
saveas(C, fname) ;

Più risposte (0)

Categorie

Scopri di più su Characters and Strings in Help Center e File Exchange

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by