how do I save image for each iteration for any graphs to a certain file

 採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 6 月 15 日

0 投票

for k=1:3
% your code
FileName=sprintf('fig%d.jpg',k)
saveas(gcf,FileName)
end

1 件のコメント

Arjun
Arjun 2014 年 6 月 16 日
k = 1:3 is the number of iteration? so if i have multiple iteration, i just hv to calculate the total iteration? where the file will be saved? tq

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeImage Processing Toolbox についてさらに検索

質問済み:

2014 年 6 月 15 日

コメント済み:

2014 年 6 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by