How to export figure to a file

7 visualizaciones (últimos 30 días)
James
James el 11 de Abr. de 2014
Respondida: Azzi Abdelmalek el 11 de Abr. de 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

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 11 de Abr. de 2014
h=plot(x,y)
saveas(h,'FileName.jpg')

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by