资源描述:
《MATLAB学生成绩管理系统.doc》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、functionvarargout=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',[]);ifnargin&&ischar(varargi
2、n{1})gui_State.gui_Callback=str2func(varargin{1});endifnargout[varargout{1:nargout}]=gui_mainfcn(gui_State,varargin{:});elsegui_mainfcn(gui_State,varargin{:});endfunctionuntitled_OpeningFcn(hObject,eventdata,handles,varargin)handles.output=hObject;guidata(hObject,handles);functionvarargou
3、t=untitled_OutputFcn(hObject,eventdata,handles)varargout{1}=handles.output;%---------------------------------信息显示表-----------------------------------------%functionID_Callback(hObject,eventdata,handles)%列表框学号回调子函数functionID_CreateFcn(hObject,eventdata,handles)ifispc&&isequal(get(hObject,'
4、BackgroundColor'),get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');endfunctionName_Callback(hObject,eventdata,handles)%列表框姓名回调子函数functionName_CreateFcn(hObject,eventdata,handles)ifispc&&isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackground
5、Color'))set(hObject,'BackgroundColor','white');endfunctionChinese_Callback(hObject,eventdata,handles)%列表框语文成绩回调子函数functionChinese_CreateFcn(hObject,eventdata,handles)ifispc&&isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','whit
6、e');endfunctionMath_Callback(hObject,eventdata,handles)%列表框数学回调子函数functionMath_CreateFcn(hObject,eventdata,handles)ifispc&&isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');endfunctionEnglish_Callback(hObject,eventdata,h
7、andles)%列表框英语回调子函数functionEnglish_CreateFcn(hObject,eventdata,handles)ifispc&&isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');endfunctionZongfen_Callback(hObject,eventdata,handles)%列表框总分显示回调子函数fu