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

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

답변 (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.

카테고리

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