chane .fig extension to .jpg

2 vues (au cours des 30 derniers jours)
Navjot Kaur
Navjot Kaur le 28 Oct 2019
Modifié(e) : Matt J le 28 Oct 2019
Hello,
How to change figures with extension .fig to .jpg extension which are stored outside of Matlab??
  2 commentaires
Adam
Adam le 28 Oct 2019
Modifié(e) : Adam le 28 Oct 2019
.fig is an actual Matlab figure, including menus, toolbars, axes, uicomponents, etc. it isn't an image. I doubt there is a way to simply convert it to a .jpg file. I'm not sure what you would expect from it even if you could. Just open it in Matlab and take a screenshot of the figure if you want it as an image.
Ken Atwell
Ken Atwell le 28 Oct 2019
I generally would not take a screenshot -- that will preserve the gray background color, etc. Instead, I would open the .fig file in MATLAB and File->Save As. Then, change the "Format" to one of a dozen or more supported file formats.

Connectez-vous pour commenter.

Réponses (1)

Matt J
Matt J le 28 Oct 2019
Modifié(e) : Matt J le 28 Oct 2019
saveas(fighandle,'filename.jpg')

Catégories

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

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by