How can I save a resized figure, with extended name 'jpg'?

조회 수: 8 (최근 30일)
fujian chang
fujian chang 2015년 8월 25일
댓글: fujian chang 2015년 8월 25일
I want to save a figure with specified size (for example 1000*400 pixels), rather than the default size. I have resize the figure with property, 'position’,like this:
plot(rand(3,1)); set(gcf,'position',[0 0 1000 400])
When I use "saveas" to save the figure into a file with extended name 'jpg', the figure size is default size, not the specified size. How can I save a figure into JPG (or png, tif, emf) with speicfied size?
Thanks in advance.

채택된 답변

Image Analyst
Image Analyst 2015년 8월 25일
  댓글 수: 2
fujian chang
fujian chang 2015년 8월 25일
Thank you. I'll try it now.
fujian chang
fujian chang 2015년 8월 25일
Thank you! The export_fig function works well!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Printing and Saving에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by