MATLAB: Handles of a Button getappdatagetapppdatahandlesseappdata Does anybody know, which handles of a PushButton I can use for setappdata ? except: userData Best Answer are you using uicontrols to make your gui?if so this is an example. h = figure,h1 = uicontrol('Style','pushbutton','Position',[20 20 100 60]) setappdata(h1,'example',10);disp(['button data :' num2str(getappdata(h1,'example'))]) Related SolutionsMATLAB: How to reset toggle buttons with a push button push buttton callback:set(handles.togglebutton1,'value',0);set(handles.togglebutton2,'value',0); MATLAB: How to get variables from callback functions in MATLAB Daniel is correct that callbacks cannot return anything. See the FAQ on this topic for various methods. Related QuestionHow to make push buttons in GUI that are unable to be pressed until another push button is pressedH i every one , i need to declare a counter such that if any one of the four buttons is pressed a specefic funtion specified in the fifth button is performed.Suppose UserData can not be used it reserved for something elseEdittext as input, toggle button to proceedAfter dcm = double(dcm) setappdata will always give me 0.How to link Radio button and Push button (Matlab GUI)
Best Answer