% --- Executes on button press in local_hist.
function local_hist_Callback(hObject, eventdata, handles)% hObject handle to local_hist (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hint: get(hObject,'Value') returns toggle state of local_hist
% --- Executes on button press in global_hist.
function global_hist_Callback(hObject, eventdata, handles)% hObject handle to local_hist (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% Hint: get(hObject,'Value') returns toggle state of global_hist
MATLAB: How to use radio buttons and execute codes under selected button.I have two buttons local histogram and global histogram
radio button
Best Answer