How to save figure
3 ビュー (過去 30 日間)
古いコメントを表示
Hi everybody i have a for in my matlab script which display a figure and i saved the figure. But the problem is :
For i = 1 i have this : saveas(gcf,'picture1.jpg') For i = 2 i would like to have this saveas(gcf,'picture2.jpg')
Is it possible to do this with for ?
I tried to do this : saveas(gcf,'picturei.jpg') but it does not work because i is seen by matlab as a string...
Thanks for your help !
0 件のコメント
回答 (1 件)
Azzi Abdelmalek
2016 年 5 月 6 日
編集済み: Azzi Abdelmalek
2016 年 5 月 6 日
for k=1:3
filename=sprintf('picture%d.jpg',k)
saveas(gcf,filename)
end
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!