How to export figure to a file

7 次查看(过去 30 天)
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

采纳的回答

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

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by