GUI- "attempt to reference field of non-structure array"
Show older comments
When i try to save my project, there is an error:

i do not understand why appear it, any body can help me please? this is my interface

5 Comments
Walter Roberson
on 27 Feb 2016
Is there the possibility that you have an R2014b or later "guide" in your MATLAB path, but that you are executing MATLAB R2014a or earlier?
Gustavo Melgar Baldivieso
on 27 Feb 2016
Edited: Gustavo Melgar Baldivieso
on 27 Feb 2016
Walter Roberson
on 27 Feb 2016
This appears to be an internal problem with GUIDE. I would most expect this to occur if you were somehow using R2014a or earlier to execute R2014b or later GUIDE.
Gustavo Melgar Baldivieso
on 27 Feb 2016
Edited: Gustavo Melgar Baldivieso
on 27 Feb 2016
Walter Roberson
on 27 Feb 2016
I would recommend reporting it to Support if you have a software maintenance contract.
Answers (1)
Image Analyst
on 27 Feb 2016
0 votes
Make sure you don't have "clear" in any of your functions, which would blow away the handles structure. If not, attach your m-file and .fig file with the paper clip icon. Or else try to figure out why you think layout_ed should have fields called isDirty and getFrame.
Possibly it might also happen if you changed the current folder while you were in MATLAB and then went back to GUIDE. Try changing the current folder in MATLAB to wherever your fig file lives, then go back to GUIDE and try to save it again.
3 Comments
Gustavo Melgar Baldivieso
on 27 Feb 2016
Gustavo Melgar Baldivieso
on 27 Feb 2016
Edited: Gustavo Melgar Baldivieso
on 27 Feb 2016
Image Analyst
on 27 Feb 2016
OK, good. For future reference, when you type in something here into the box, there are icons above the edit box, like: B, I, Aa, bullet points,{}Code, a chain link, a green and brown frame icon (to insert an image), and a paper clip (to attach files).
Categories
Find more on System Commands in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


