Error opening .fig files

6 ビュー (過去 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 Center および File ExchangeInteractive Control and Callbacks についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by