I use GUIDE to make an interface.
I obtain some callbacks in wich I want to use another function as follow:
function CallbackFunction(hObject, eventdata, handles) ...myFunction(hObject, eventdata, handles);...guidata(hObject, handles); end % function
fucntion myFunction(hObject, eventdata, handles)...handles.Var=guidata(hObject, handles); end % fonction
But this seems to cause me many problems. I seem to miss something.
I just want to write a function that is called from a callback function and that can change handles variables?
Best Answer