Saveas to .jpg not same size as .fig

2 views (last 30 days)
Edward Byers
Edward Byers on 13 Jun 2012
I use saveas to save the figure in both .fig and .jpg formats. However, when I open the jpg it appears that it has not adopted the resolution I set which works for the .fig.
I thought this was something to do with 'PaperPosition' property value after seeing this answer, although I can't get this to work?
figSize = [1 1 800 500]; % the desired resolution and figure size
set(gcf, 'Position', figSize);
set(gcf, 'PaperPosition', figSize);
  1 Comment
Walter Roberson
Walter Roberson on 13 Jun 2012
I do not understand. You cannot set a resolution for a .fig . A .fig file effectively has vector graphics primitives -- the handle graphics, not the rendered figure.

Sign in to comment.

Answers (0)


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

Community Treasure Hunt

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

Start Hunting!