function pushbutton1_Callback(hObject, eventdata, handles)
Show older comments
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');
end
if(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.
Accepted Answer
More Answers (0)
Categories
Find more on Desktop in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!