필터 지우기
필터 지우기

how to clear ui control callback error

조회 수: 1 (최근 30일)
vandana krishna
vandana krishna 2019년 5월 4일
편집: Adam Danz 2019년 5월 6일
%%%%%
Reference to non-existent field 'x1'.
Error in aliwork>pushbutton1_Callback (line 188)
x1=handles.metricdata.x1;
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in aliwork (line 19)
gui_mainfcn(gui_State, varargin{:});
Error while evaluating UIControl Callback.
%%%%
how to clear this error????

답변 (1개)

Adam Danz
Adam Danz 2019년 5월 4일
편집: Adam Danz 2019년 5월 6일
In this line
x1=handles.metricdata.x1;
"x1" is not a field within the structure "metricdata". "metricdata" is most likely a handle to a graphics object or some object within your GUI. To confirm,
isstruct(handles.metricdata) % confirm that handles.metricdata is a stucture
% To see fields,
handles.metricdata
%-or-
fieldnames(handles.metricdata)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by