How to export figure to a file

7 ビュー (過去 30 日間)
James
James 2014 年 4 月 11 日
回答済み: Azzi Abdelmalek 2014 年 4 月 11 日
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 件)

カテゴリ

Help Center および File ExchangeTitle Pages, Tables of Contents, Lists of Figures, Tables, and Captions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by