필터 지우기
필터 지우기

Attempt to reference field of non-structure array.

조회 수: 1 (최근 30일)
LINGESH siva
LINGESH siva 2014년 4월 16일
댓글: Jacob Capra 2014년 8월 27일
I get this error every time I try and run a GUI (1) from my main menu GUI (2). GUI (1) runs on it's own just fine. when I run GUI(1) from GUI(2) I get the error "Attempt to reference field of non-structure array" and says there is an error in the way i am calling to my values "T_FSin = str2double(get(handles.T_FS_in, 'string'));" under the Run button callback. NOW GUI(1) works when i run it byitself. GUI(2) is just a main menu GUI that opens GUI(1) and then closes after I choose a calculation method. I don't understand why my GUI(1) won't work after i run it though the GUI(2). I have a third GUI and it runs just fine after being called by GUI(2). Any ideas? I'll post code if needed. Thank you
CODE IS
sa = get(handles.edit1,'String');
sb = get(handles.edit2,'String');
sc = get(handles.edit3,'String');
error is
Attempt to reference field of non-structure array.
  댓글 수: 2
Walter Roberson
Walter Roberson 2014년 4월 16일
How are you "opening" GUI(1) from GUI(2) ?
Jacob  Capra
Jacob Capra 2014년 8월 27일
The problem is the syntax of 'handles.edit1'
MatLab interprets that as a reference to a field 'edit1' in a structure 'handles'. I am having the same issue with my GUI and cannot find different syntax to use to store information from my GUI.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Programming Utilities에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by