chane .fig extension to .jpg

2 Ansichten (letzte 30 Tage)
Navjot Kaur
Navjot Kaur am 28 Okt. 2019
Bearbeitet: Matt J am 28 Okt. 2019
Hello,
How to change figures with extension .fig to .jpg extension which are stored outside of Matlab??
  2 Kommentare
Adam
Adam am 28 Okt. 2019
Bearbeitet: Adam am 28 Okt. 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 am 28 Okt. 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.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Matt J
Matt J am 28 Okt. 2019
Bearbeitet: Matt J am 28 Okt. 2019
saveas(fighandle,'filename.jpg')

Kategorien

Mehr zu Printing and Saving finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by