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

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

类别

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