chane .fig extension to .jpg

2 views (last 30 days)
Navjot Kaur
Navjot Kaur on 28 Oct 2019
Edited: Matt J on 28 Oct 2019
Hello,
How to change figures with extension .fig to .jpg extension which are stored outside of Matlab??
  2 Comments
Adam
Adam on 28 Oct 2019
Edited: Adam on 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 on 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.

Sign in to comment.

Answers (1)

Matt J
Matt J on 28 Oct 2019
Edited: Matt J on 28 Oct 2019
saveas(fighandle,'filename.jpg')

Categories

Find more on Printing and Saving in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!