Error opening .fig files

조회 수: 19 (최근 30일)
KB
KB 2019년 3월 25일
댓글: Simone Rupp 2019년 9월 13일
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
madhan ravi
madhan ravi 2019년 3월 25일
Show us how you are using the syntax.

댓글을 달려면 로그인하십시오.

답변 (2개)

KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 3월 25일
Have you tried this?
fig1=openfig(figure_filename); %Only figure file name, ensure that figure in current directory
  댓글 수: 2
KB
KB 2019년 3월 25일
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 2019년 9월 13일
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?

댓글을 달려면 로그인하십시오.


mohammad ibrahim
mohammad ibrahim 2019년 5월 12일
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);"

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by