MATLAB: Clearing an image on a push button cdataclearclear images I would like to clear a image that has been put onto a push button using the cdata function. Is it similar to set(handles.pushbutton1,'cdata','')? Best Answer set(handles.pushbutton1 , 'Cdata' , []); Related SolutionsMATLAB: Check if push button has an image on it or not You need to use get and isequal:if isequal(get(handles.pushbutton1,'cdata'),[]) || isequal(get(handles.pushbutton2,'cdata'),[])%...end MATLAB: Push button on a table something like:uicontrol ( 'parent', f, 'style', 'pushbutton', 'position', [25 0 350 20], 'string', 'PUSH', 'Callback', {@MyCallBack} ) Related QuestionHow to put pictures in a GUI that opens from the main GUI!Sizing a push buttonFly Brain Image Processing GUI
Best Answer