How to increment string

1 次查看(过去 30 天)
Rohan Repale
Rohan Repale 2013-4-9
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

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 File Operations 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by