function pushbutton1_Callback(hObject, eventdata, handles)handles.metricdata.a=1;function pushbutton2_Callback(hObject, eventdata, handles)b=handles.metricdata.a;if(b~=1) msgbox('ok');endif(b==1) msgbox('false');end
in above code, if i don't press pushbutton1 and i press pushbutton2 then message 'ok' should display and if i press pushbutton1 and i press pushbutton2 then message 'false' should display.
Best Answer