how to save matlab figure in format of .fig

4 views (last 30 days)
i am using R2016a and trying to save figure as .fig. it saves but when i opening the figure it is open the matlab code not opening the figure.i attached saved figure below
  1 Comment
sloppydisk
sloppydisk on 14 May 2018
It works fine for me, does your code have the same name as the figure? If so, try changing that.

Sign in to comment.

Answers (1)

KALYAN ACHARJYA
KALYAN ACHARJYA on 14 May 2018
Edited: KALYAN ACHARJYA on 14 May 2018
% try this one
figure
%disp fugure here, plot/imshow/surf etc
savefig('figureFile.fig'); % 'figureFile' save file name, you can change it.
%To open it use following
openfig('figureFile.fig');

Categories

Find more on Graphics Object Identification 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!