MATLAB Answers

how to resolve the 'dot indexing not supported for variables of this type' error?

16 views (last 30 days)
Darren Akehurst
Darren Akehurst on 10 Dec 2019
Edited: per isakson on 21 Dec 2019 at 4:12
I am using Matalb 2019b. I have a guide figure that I when I save it I get the error as below. The guide figure has been used at lot but since upgrading I now get the error. I can edit and update the associated .m file with no probelms.
The lines of code in the guidefunc are as follows:
layout_ed = getappdata(fig, 'GUIDELayoutEditor');
frame = layout_ed.getFrame;
Any suggestions will be most appreciated

  4 Comments

Show 1 older comment
Darren Akehurst
Darren Akehurst on 10 Dec 2019
It has a lot of information II would prefer to keep private. Any suggestions on how to approach the issue would be really appreciated though
Walter Roberson
Walter Roberson on 10 Dec 2019
It needs a long debugging session. You have to trace the readSavedFigure call: the first parameter to it should be a non-empty layout editor object that would then get stored into the GUIDELayoutEditor property of the figure within the newGuideFig function near line 2368. You need to figure out whether a valid value is getting set there; if not then you would need to trace back to find out what is calling guidefunc with incorrect parameters or where the value is disappearing to. If a valid value is getting set, then it becomes a matter of tracking down why the value is disappearing.

Sign in to comment.

Answers (1)

per isakson
per isakson on 10 Dec 2019
Edited: per isakson on 21 Dec 2019 at 4:12
"I would prefer to keep private" Two alternatives remain
  • Make a Minimal working example and upload it here
  • Start debugging. Set a breakpoint at the line 1224. Invoke your code. When the execution halts at 1224 inspect the values of fig and layout_ed. Share your findings here. See Walter's comment.
And see

  0 Comments

Sign in to comment.

Sign in to answer this question.