Filter löschen
Filter löschen

How to increment string

12 Ansichten (letzte 30 Tage)
Rohan Repale
Rohan Repale am 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

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Characters and Strings finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by