How to save automatic a plot via command?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ivan Mich
le 25 Oct 2019
Modifié(e) : KALYAN ACHARJYA
le 25 Oct 2019
Hello,
Doew anybody knows How to save automatic a plot in matlab via command after running the code? I hve used command like saveas but the images does not exist..
0 commentaires
Réponse acceptée
KALYAN ACHARJYA
le 25 Oct 2019
Modifié(e) : KALYAN ACHARJYA
le 25 Oct 2019
%Generate_figure
saveas(gcf,'file_name.png');
The figure will save as png image format in the same working directory
For multiple figures:
for i=1:n
saveas(gcf,sprintf('%d.jpg',j));
end
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!