MATLAB学生成绩管理系统(共6页).doc

上传人:飞****2 文档编号:16270789 上传时间:2022-05-16 格式:DOC 页数:6 大小:186KB
返回 下载 相关 举报
MATLAB学生成绩管理系统(共6页).doc_第1页
第1页 / 共6页
MATLAB学生成绩管理系统(共6页).doc_第2页
第2页 / 共6页
点击查看更多>>
资源描述

《MATLAB学生成绩管理系统(共6页).doc》由会员分享,可在线阅读,更多相关《MATLAB学生成绩管理系统(共6页).doc(6页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。

1、精选优质文档-倾情为你奉上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(varar

2、gin1) gui_State.gui_Callback = str2func(varargin1);endif nargout varargout1: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

3、 = untitled_OutputFcn(hObject, eventdata, handles) varargout1 = 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,

4、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(hObje

5、ct, 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_Cre

6、ateFcn(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

7、(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,defaultUicont

8、rolBackgroundColor) 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

9、,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(hObjec

10、t, eventdata, handles) %确定按钮val=get(handles.Input,Value);switch val; case 1 mess=get(handles.Zhuangtai,string); n1=str2double(mess) if (1999 n1)&(n12011); 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 m

11、ess1=get(handles.Zhuangtai,string); set(handles.Chinese,String,mess1); case 4 mess2=get(handles.Zhuangtai,string); set(handles.Math,String,mess2); case 5 mess3=get(handles.Zhuangtai,string); set(handles.English,String,mess3); mess1=get(handles.Chinese,string); mess1=str2double(mess1); mess2=get(hand

12、les.Math,string); mess2=str2double(mess2); mess3=str2double(mess3); handles.mess3=mess3; sum=mess1+mess2+mess3; set(handles.Zongfen,String,sum); guidata(hOject,handles); end %-查询框信息-%function Chaxun_Callback(hObject, eventdata, handles) %可编辑文本框查询输入回调子函数 function Chaxun_CreateFcn(hObject, eventdata,

13、handles)if ispc & isequal(get(hObject,BackgroundColor), get(0,defaultUicontrolBackgroundColor) set(hObject,BackgroundColor,white);end function Search_Callback(hObject, eventdata, handles) %搜索按键mess1=get(handles.Chaxun,string); mess=str2double(mess1);mess2=get(handles.ID,string); n1=str2double(mess2)

14、;mess3=get(handles.Name,string); %n2=str2double(mess3);if (mess=n1)|(mess1=mess3) mess=get(handles.Chinese,string); set(handles.ChaxunC,String,mess); mess1=get(handles.Math,string); set(handles.ChaxunM,String,mess1); mess2=get(handles.English,string); set(handles.ChaxunE,String,mess2); mess=str2doub

15、le(mess); mess1=str2double(mess1); mess2=str2double(mess2); sum=mess+mess1+mess2; set(handles.ChaxunZ,String,sum); end function ChaxunC_Callback(hObject, eventdata, handles) %可编辑文本框查询语文显示回调子函数 function ChaxunC_CreateFcn(hObject, eventdata, handles)if ispc & isequal(get(hObject,BackgroundColor), get(

16、0,defaultUicontrolBackgroundColor) set(hObject,BackgroundColor,white);end function ChaxunM_Callback(hObject, eventdata, handles) %可编辑文本框查询数学显示回调子函数 function ChaxunM_CreateFcn(hObject, eventdata, handles)if ispc & isequal(get(hObject,BackgroundColor), get(0,defaultUicontrolBackgroundColor) set(hObjec

17、t,BackgroundColor,white);end function ChaxunE_Callback(hObject, eventdata, handles) %可编辑文本框查询英语显示回调子函数 function ChaxunE_CreateFcn(hObject, eventdata, handles)if ispc & isequal(get(hObject,BackgroundColor), get(0,defaultUicontrolBackgroundColor) set(hObject,BackgroundColor,white);end function ChaxunZ

18、_Callback(hObject, eventdata, handles) %可编辑文本框查询总分显示回调子函数 function ChaxunZ_CreateFcn(hObject, eventdata, handles)if ispc & isequal(get(hObject,BackgroundColor), get(0,defaultUicontrolBackgroundColor) set(hObject,BackgroundColor,white);end function ChaxunP_Callback(hObject, eventdata, handles) %可编辑文本框查询排名显示回调子函数 function ChaxunP_CreateFcn(hObject, eventdata, handles)if ispc & isequal(get(hObject,BackgroundColor), get(0,defaultUicontrolBackgroundColor) set(hObject,BackgroundColor,white);end专心-专注-专业

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 教育专区 > 教案示例

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知淘文阁网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号© 2020-2023 www.taowenge.com 淘文阁