chane .fig extension to .jpg

2 visualizzazioni (ultimi 30 giorni)
Navjot Kaur
Navjot Kaur il 28 Ott 2019
Modificato: Matt J il 28 Ott 2019
Hello,
How to change figures with extension .fig to .jpg extension which are stored outside of Matlab??
  2 Commenti
Adam
Adam il 28 Ott 2019
Modificato: Adam il 28 Ott 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 il 28 Ott 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.

Accedi per commentare.

Risposte (1)

Matt J
Matt J il 28 Ott 2019
Modificato: Matt J il 28 Ott 2019
saveas(fighandle,'filename.jpg')

Categorie

Scopri di più su Printing and Saving in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by