Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
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.

Respuesta aceptada

Image Analyst
Image Analyst el 25 de Ag. de 2015
  2 comentarios
fujian chang
fujian chang el 25 de Ag. de 2015
Thank you. I'll try it now.
fujian chang
fujian chang el 25 de Ag. de 2015
Thank you! The export_fig function works well!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Printing and Saving en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by