function Analysis_pushbutton_Callback(hObject, eventdata, handles)
% hObject handle to Analysis_pushbutton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
state = get(hObject, 'Value');
if (state == 1)
set(handles.Import_pushbutton, 'ForegroundColor', [0.0, 0.0, 0.0]);
set(handles.pushbutton8, 'ForegroundColor', [0.0, 0.0, 0.0]);
set(handles.Analysis_pushbutton, 'ForegroundColor', [1.0, 0.0, 0.0]);
end
在matlab guide中,可以直接获取按钮的值判断按钮是否按下。那么在app designer中,如何判断按钮被按下呢?