saved images in matlab

when i want to save an image in matlab i just use ( im write ) command , but if i want to save a lot of images according to certain processing i can't use (imwrite) in a loop or something coz every time the new image will overwrite the last one ,, for ex; >> imwrite(A,'*name*.jpg'); at each time it's name will still "name" ... how can i fix this issue*bold*

 採用された回答

Honglei Chen
Honglei Chen 2012 年 8 月 31 日

1 投票

You can dynamically change the file name. for example
for m = 1:10
% ...
fname = sprintf('name%d.jpg',m);
imwrite(A,fname);
% ...
end

その他の回答 (2 件)

muhammed
muhammed 2012 年 8 月 31 日

0 投票

thx guys u helped me a lot .. prob. solved :)

カテゴリ

ヘルプ センター および File ExchangeConvert Image Type についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by