MATLAB学生成绩管理系统

function varargout = untitled(varargin) %主函数gui_Singleton = 1;

gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ...

'gui_OpeningFcn', @untitled_OpeningFcn, ... %界面启动子函数

'gui_OutputFcn', @untitled_OutputFcn, ... %输出子函数 'gui_LayoutFcn', [] , ... 'gui_Callback', []); if nargin && ischar(varargin{1})

gui_State.gui_Callback = str2func(varargin{1}); end if nargout

[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:}); else

gui_mainfcn(gui_State, varargin{:}); end

function untitled_OpeningFcn(hObject, eventdata, handles, varargin) handles.output = hObject; guidata(hObject, handles);

function varargout = untitled_OutputFcn(hObject, eventdata, handles) varargout{1} = handles.output;

%---------------------------------信息显示表-----------------------------------------%

function ID_Callback(hObject, eventdata, handles) %列表框学号回调子函数

function ID_CreateFcn(hObject, eventdata, handles) if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function Name_Callback(hObject, eventdata, handles) %列表框姓名回调子函数

function Name_CreateFcn(hObject, eventdata, handles)

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function Chinese_Callback(hObject, eventdata, handles) %列表框语文成绩回调子函数

function Chinese_CreateFcn(hObject, eventdata, handles)if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function Math_Callback(hObject, eventdata, handles) 子函数

function Math_CreateFcn(hObject, eventdata, handles) if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function English_Callback(hObject, eventdata, handles) 回调子函数

function English_CreateFcn(hObject, eventdata, handles)if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function Zongfen_Callback(hObject, eventdata, handles) 显示回调子函数

function Zongfen_CreateFcn(hObject, eventdata, handles)if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

%列表框数学回调%列表框英语%列表框总分

%----------------------------------信息输入表-------------------------------------%

function Input_Callback(hObject, eventdata, handles) %弹出式信息输入列表

function Input_CreateFcn(hObject, eventdata, handles) if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function Zhuangtai_Callback(hObject, eventdata, handles) 辑文本框信息状态回调子函数

function Zhuangtai_CreateFcn(hObject, eventdata, handles) if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

function Button_Callback(hObject, eventdata, handles) %确定按钮val=get(handles.Input,'Value'); switch val; case 1

mess=get(handles.Zhuangtai,'string'); n1=str2double(mess) if (1999< n1)&&(n1<2011); set(handles.ID,'String',n1); else

set(handles.ID,'string','NO'); end case 2

mess=get(handles.Zhuangtai,'string'); set(handles.Name,'String',mess); case 3

mess1=get(handles.Zhuangtai,'string'); set(handles.Chinese,'String',mess1); case 4

可编%

联系客服:779662525#qq.com(#替换为@) 苏ICP备20003344号-4