How to export figure to a file

1 vue (au cours des 30 derniers jours)
James
James le 11 Avr 2014
Hi,
I am running a script and at the end I am outputing a figure with a few graphs on it. Is there any way, in the script, I can get it to automatically save it as a picture (jpeg or whatever) to a specific file on my computer?
Thanks

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 11 Avr 2014
h=plot(x,y)
saveas(h,'FileName.jpg')

Plus de réponses (0)

Catégories

En savoir plus sur Dates and Time dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by