MATLAB: Radio button panel prblm buttonguiradioradiobutton I have a radio button group. In that one button is automatically selected. I want nothing should be selected. How can i do that thanks Best Answer In your Least_Sqaure_Optimization_OpeningFcn put this:set(handles.uipanel1,'SelectedObject',[])Where uipanel1 is the name of the buttongroup. If you don't know the required name, first open your GUI then do this:H = findall(0,'type','uipanel')get(H,'tag') % The name is in here.. Related SolutionsMATLAB: H 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 else Use guidata, which calls setappdata and getappdata internally:function pushbutton1_Callback(hObject, eventdata, handles)handles = guidata(hObject);handles.counter = 1;guidata(hObject, handles);% And the same for the other callbacks...function pushbutton5_Callback(hObject, eventdata, handles)handles = guidata(hObject);switch handles.counter case 1 case 2 case 3 case 4 otherwise % No SWITCH without OTHERWISE error('Programming error') endend MATLAB: Error using handle.handle/set Invalid or deleted object. In your callback for edit1 you replace the handle with the value extracted from the handle. That is confusing at the very least. Related QuestionHow to extract data from a selected file by pressing a push button in GUI
Best Answer