资源描述:
《matlab_GUI学生成绩管理系统源码.doc》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、主界面源码:functionvarargout=Main(varargin)%MAINM-fileforMain.fig%MAIN,byitself,createsanewMAINorraisestheexisting%singleton*.%%H=MAINreturnsthehandletoanewMAINorthehandleto%theexistingsingleton*.%%MAIN('CALLBACK',hObject,eventData,handles,...)callsthelocal%functionnamedCALLBAC
2、KinMAIN.Mwiththegiveninputarguments.%%MAIN('Property','Value',...)createsanewMAINorraisesthe%existingsingleton*.Startingfromtheleft,propertyvaluepairsare%appliedtotheGUIbeforeMain_OpeningFunctiongetscalled.An%unrecognizedpropertynameorinvalidvaluemakespropertyapplication%s
3、top.AllinputsarepassedtoMain_OpeningFcnviavarargin.%%*SeeGUIOptionsonGUIDE'sToolsmenu.Choose"GUIallowsonlyone%instancetorun(singleton)".%%Seealso:GUIDE,GUIDATA,GUIHANDLES%Copyright2002-2003TheMathWorks,Inc.%EdittheabovetexttomodifytheresponsetohelpMain%LastModifiedbyGUIDEv
4、2.512-Jan-201409:31:12%Begininitializationcode-DONOTEDITgui_Singleton=1;gui_State=struct('gui_Name',mfilename,...'gui_Singleton',gui_Singleton,...'gui_OpeningFcn',@Main_OpeningFcn,...'gui_OutputFcn',@Main_OutputFcn,...'gui_LayoutFcn',[],...'gui_Callback',[]);ifnargin&&isch
5、ar(varargin{1})gui_State.gui_Callback=str2func(varargin{1});endifnargout[varargout{1:nargout}]=gui_mainfcn(gui_State,varargin{:});elsegui_mainfcn(gui_State,varargin{:});end%Endinitializationcode-DONOTEDIT%---ExecutesjustbeforeMainismadevisible.functionMain_OpeningFcn(hObje
6、ct,eventdata,handles,varargin)%Thisfunctionhasnooutputargs,seeOutputFcn.%hObjecthandletofigure%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%varargincommandlineargumentstoMain(seeVARARGIN)%Choosedefaultcommandlineo
7、utputforMainhandles.output=hObject;%Updatehandlesstructureguidata(hObject,handles);%UIWAITmakesMainwaitforuserresponse(seeUIRESUME)%uiwait(handles.figure1);%---Outputsfromthisfunctionarereturnedtothecommandline.functionvarargout=Main_OutputFcn(hObject,eventdata,handles)%va
8、rargoutcellarrayforreturningoutputargs(seeVARARGOUT);%hObjecthandletofigure%eventdatarese