Error opening .fig files

6 views (last 30 days)
KB
KB on 25 Mar 2019
Commented: Simone Rupp on 13 Sep 2019
I have .fig files I cannot open, it says 'error using open (line 146) dot indexing is not supported for variables of this type. Any idea how I can access these files? It is a weeks worth of work.
  1 Comment
madhan ravi
madhan ravi on 25 Mar 2019
Show us how you are using the syntax.

Sign in to comment.

Answers (2)

KALYAN ACHARJYA
KALYAN ACHARJYA on 25 Mar 2019
Have you tried this?
fig1=openfig(figure_filename); %Only figure file name, ensure that figure in current directory
  2 Comments
KB
KB on 25 Mar 2019
Typing in the command line, in the figures diectory: fig1=openfig('Fig4C12March19'); (previously I was double clicking directly on the file) you get a better look at the error code but it does not mean much to me:
Dot indexing is not supported for variables of this type.
Error in matlab.graphics.internal.figfile.FigFile/read (line 59)
result = hgDataVars.(vars_hgM{1}).GraphicsObjects.Format3Data;
Error in matlab.graphics.internal.figfile.FigFile
Error in loadFigure (line 31)
FF = matlab.graphics.internal.figfile.FigFile(fullpath);
Error in openfig>localOpenFigure (line 69)
h = loadFigure(filename, visibleAction);
Error in openfig (line 40)
figOut = localOpenFigure(filename, reuse, visibleAction);
Simone Rupp
Simone Rupp on 13 Sep 2019
I get exactly the same error message, but I cannot figure out what it means or what I can do about it.
I have produced several figures with my code and can open all but one; also, I have run this code several times with different parameters, but don't always get this error message for the same figure. The error message thus seems quite random to me.
Does anyone have any idea what I could try to open this figure? Or do I really have to re-run the whole simulation?

Sign in to comment.


mohammad ibrahim
mohammad ibrahim on 12 May 2019
Hello KB
I have the same problem. My GUI was working very fine, but suddenly I have the same error (and I cannot open the .fig using GUIDE).
have you managed to solve this issue ?
thank you
MI
" here is the Error message"==========
Dot indexing is not supported for variables of this type.
Error in matlab.graphics.internal.figfile.FigFile/read (line 59)
result = hgDataVars.(vars_hgM{1}).GraphicsObjects.Format3Data;
Error in matlab.graphics.internal.figfile.FigFile
Error in loadFigure (line 31)
FF = matlab.graphics.internal.figfile.FigFile(fullpath);
Error in openfig>localOpenFigure (line 69)
h = loadFigure(filename, visibleAction);
Error in openfig (line 40)
figOut = localOpenFigure(filename, reuse, visibleAction);"

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!