|
On Oct 25, 10:19 am, "PinkLab " <hussain...@hotmail.com> wrote:
> Any help please?
get(hObject,'Value') == get(hObject,'Max') evaluates to either true or
false, which can be an array index but I'm not sure what you're really
after. If you're wanting to check radio button status, then I think
maybe you should try this (a bit more verbose than required just for
clarity):
radioButton1Selected = get(handles.radioButton1, 'value');
radioButton2Selected = get(handles.radioButton2, 'value');
radioButton3Selected = get(handles.radioButton3, 'value');
if radioButton1Selected
% Do what needs to be done if radio button 1 is selected.
elseif radioButton2Selected
% Do what needs to be done if radio button 2 is selected.
elseif radioButton3Selected
% Do what needs to be done if radio button 3 is selected.
end
|