how to saveas 20 figure as picture with different names ?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
arian hoseini
am 3 Dez. 2022
Kommentiert: arian hoseini
am 3 Dez. 2022
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
0 Kommentare
Akzeptierte Antwort
Muu
am 3 Dez. 2022
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
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Printing and Saving finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!