function pushbutton1_Callback(hObject, eventdata, handles)
Ältere Kommentare anzeigen
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.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Desktop finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!