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

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일

0 개 추천

댓글 수: 2

Thank you. I'll try it now.
Thank you! The export_fig function works well!

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Printing and Saving에 대해 자세히 알아보기

제품

태그

질문:

2015년 8월 25일

댓글:

2015년 8월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by