Error opening .fig files

6 visualizzazioni (ultimi 30 giorni)
KB
KB il 25 Mar 2019
Commentato: Simone Rupp il 13 Set 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 Commento
madhan ravi
madhan ravi il 25 Mar 2019
Show us how you are using the syntax.

Accedi per commentare.

Risposte (2)

KALYAN ACHARJYA
KALYAN ACHARJYA il 25 Mar 2019
Have you tried this?
fig1=openfig(figure_filename); %Only figure file name, ensure that figure in current directory
  2 Commenti
KB
KB il 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 il 13 Set 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?

Accedi per commentare.


mohammad ibrahim
mohammad ibrahim il 12 Mag 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);"

Categorie

Scopri di più su Interactive Control and Callbacks in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by