GUI throws error: Attempt to reference field of non-structure array.

1 回表示 (過去 30 日間)
Programmer Pig
Programmer Pig 2013 年 5 月 6 日
I have a simple GUI made from GUIDE. it throws me this error: Attempt to reference field of non-structure array.
I have a editbox and a button. When I click on the button, the system will get whatever input is in the editbox.
I have searched it in google, where the reason of throwing this exception is overwrote original handle structure . But I'm sure I never overwritten anything. Previously the code was working, but after a week I get back to the code, it starts to throw the exception.

回答 (1 件)

Babak
Babak 2013 年 5 月 6 日
You are probably trying to use,
handles.something
where you have not previously defined it in the callback function or if it is your user variable, you haven't not defined in the opening function.
Posting your code will help us trap and obliterate the bug :D

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by