Save image for each iteration

1 回表示 (過去 30 日間)
Arjun
Arjun 2014 年 6 月 15 日
コメント済み: Arjun 2014 年 6 月 16 日
how do I save image for each iteration for any graphs to a certain file

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 6 月 15 日
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 件)

カテゴリ

Help Center および File ExchangeImages についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by