필터 지우기
필터 지우기

how to saveas 20 figure as picture with different names ?

조회 수: 3 (최근 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 CenterFile Exchange에서 Printing and Saving에 대해 자세히 알아보기

태그

제품


릴리스

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by