Currently I am doing some GUI programing. (I am a newbie in this so if there is something wrong, please feel free to give me advices).
I have a radio button along its callback function. Along with that, I also produce another function to do some calculation/condition checking.
if <obey condition>
<radiobutton call back>
function <radiobutton callback> hObecj eventdata handles
chck = get(hObject,'Value');
if get(hObject,'Value') == 1 then
Surprisingly, the value I get for chck is not as it should be (it should be 1 but it appeared to be 3). Spending ages stopping and watching step-by-step, I still have no clue how to solve it.
Thanks for your help.