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 CenterFile Exchange에서 Title 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