how to saveas 20 figure as picture with different names ?

1 回表示 (過去 30 日間)
arian hoseini
arian hoseini 2022 年 12 月 3 日
コメント済み: arian hoseini 2022 年 12 月 3 日
X=rand(1000);
c=1;
d=1;
for i=1:50:1000
for c=1:50+c
H(i)=X(c);
end
c=c+50;
D(d)=figure(d)
plot(H);
d=d+1
end

採用された回答

Muu
Muu 2022 年 12 月 3 日
Use 'saveas(gcf, ['figure' num2str(d) '.png'])'
For example:
X=rand(1000);
c=1;
d=1;
for i=1:50:1000
for c=1:50+c
H(i)=X(c);
end
c=c+50;
D(d)=figure(d)
plot(H);
saveas(gcf, ['figure' num2str(d) '.png'])
d=d+1
end

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePrinting and Saving についてさらに検索

タグ

製品


リリース

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by