GUI- "attempt to reference field of non-structure array"

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 comentarios

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
Gustavo Melgar Baldivieso el 27 de Feb. de 2016
Editada: Gustavo Melgar Baldivieso el 27 de Feb. de 2016
My Matlab is R2015a, this may affect in any way?... I forgot say that when I try run de project from GUIDE window appear this error:
but when I try to run the project from the code editor window, it runs normally
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
Gustavo Melgar Baldivieso el 27 de Feb. de 2016
Editada: Gustavo Melgar Baldivieso el 27 de Feb. de 2016
How can I fix it?
I would recommend reporting it to Support if you have a software maintenance contract.

Iniciar sesión para comentar.

Respuestas (1)

Image Analyst
Image Analyst el 27 de Feb. de 2016
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 comentarios

Where is the paper clip icon? This error appeared when I edited the Value Cell in this popupmenu
I did this:
but then I returned to put the original value, then there appeared that error
Gustavo Melgar Baldivieso
Gustavo Melgar Baldivieso el 27 de Feb. de 2016
Editada: Gustavo Melgar Baldivieso el 27 de Feb. de 2016
I already resolved my problem, I just close muy GUIDE window and I re-openned it, and it worked O.o
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).

Iniciar sesión para comentar.

Categorías

Más información sobre System Commands en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 27 de Feb. de 2016

Comentada:

el 27 de Feb. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by