Input argument "hObject" is undefined??
Mostrar comentarios más antiguos
Hi
I'm trying to figure out the whole handles structure thing. I created two simple functions in two separate m files and I want to see if I can pass data from one to the other using the handles structure. But I am getting an error message when I try to update the handles structure using guidata(hObject,handles)
I get the following error even before the second function is executed.
Input argument "hObject" is undefined
This is my code:
Function one
function fct1(hObject, eventdata, handles)
handles.x=5
handles.b=6
guidata(hObject,handles)
end
Function two
function fct2(hObject, eventdata, handles)
value1=handles.a
value2=handles.b
end
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Interactive Control and Callbacks en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!