Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
fujian chang
fujian chang le 25 Août 2015
Commenté : fujian chang le 25 Août 2015
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.

Réponse acceptée

Image Analyst
Image Analyst le 25 Août 2015
  2 commentaires
fujian chang
fujian chang le 25 Août 2015
Thank you. I'll try it now.
fujian chang
fujian chang le 25 Août 2015
Thank you! The export_fig function works well!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Printing and Saving dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by