push button callback error

4 visualizzazioni (ultimi 30 giorni)
SITI NADIA MD LELA
SITI NADIA MD LELA il 10 Dic 2019
Risposto: Geoff Hayes il 17 Dic 2019
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 Commento
Sahithi Kanumarlapudi
Sahithi Kanumarlapudi il 17 Dic 2019
Could you provide the snippet where you are assigning the call back

Accedi per commentare.

Risposte (1)

Geoff Hayes
Geoff Hayes il 17 Dic 2019
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.

Categorie

Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by