Error while evaluating UI control callback

6 ビュー (過去 30 日間)
NIDHI MAVANI
NIDHI MAVANI 2021 年 3 月 22 日
回答済み: Walter Roberson 2021 年 3 月 22 日
Why do I keep getting this error whenever i try to insert my value in my gui.
Reference to non-existent field 'sd'.
Error in test2>edit1_Callback (line 151)
handles.sd*sd;
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in test2 (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)test2('edit1_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.

回答 (1 件)

Walter Roberson
Walter Roberson 2021 年 3 月 22 日
Your figure has no permanent graphics object named sd and you did not (permanently) store a value into handles.sd before the point where you tried to use it.

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by