MATLAB Answers

push button callback error

4 ビュー (過去 30 日間)
SITI NADIA MD LELA
SITI NADIA MD LELA 2019 年 12 月 10 日
回答済み: Geoff Hayes 2019 年 12 月 17 日
I have created a GUI window with a push button for forward kinematics. but when i hit the callback button. the figure won't appear. and i states:
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)RRR_ROBOT('buttonforward_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.

  1 件のコメント

Sahithi Kanumarlapudi
Sahithi Kanumarlapudi 2019 年 12 月 17 日
Could you provide the snippet where you are assigning the call back

サインイン to comment.

回答 (1 件)

Geoff Hayes
Geoff Hayes 2019 年 12 月 17 日
Siti - it looks like you are using GUIDE for your GUI and, for your callback, the comments indicate that there should be three input parameters to your function signature...but the handles parameter isn't there. Try re-writing your callback signature as
function buttonForward_Callback(hObject, eventdata, handles)
and then re-run your code. Note that even the error message
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)RRR_ROBOT('buttonforward_Callback',hObject,eventdata,guidata(hObject))
is indicating that three input parameters (hObject,eventdata,guidata(hObject)) are passed to this function.

  0 件のコメント

サインイン to comment.

サインイン してこの質問に回答します。

タグ


Translated by