主界面源码:functionvarargout=Main(varargin)%MAINM-fileforMain.fig%MAIN,byitself,createsanewMAINorraisestheexisting%singleton*.%%H=MAINreturnsthehandletoanewMAINorthehandleto%theexistingsingleton*.%%MAIN('CALLBACK',hObject,eventData,handles,...)callsthelocal%functionnamedCALLBACKinMAIN.Mwiththegiveninputarguments.%%MAIN('Property','Value',...)createsanewMAINorraisesthe%existingsingleton*.Startingfromtheleft,propertyvaluepairsare%appliedtotheGUIbeforeMain_OpeningFunctiongetscalled.An%unrecognizedpropertynameorinvalidvaluemakespropertyapplication%stop.AllinputsarepassedtoMain_OpeningFcnviavarargin.%%*SeeGUIOptionsonGUIDE'sToolsmenu.ChooseGUIallowsonlyone%instancetorun(singleton).%%Seealso:GUIDE,GUIDATA,GUIHANDLES%Copyright2002-2003TheMathWorks,Inc.%EdittheabovetexttomodifytheresponsetohelpMain%LastModifiedbyGUIDEv2.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&&ischar(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(hObject,eventdata,handles,varargin)%Thisfunctionhasnooutputargs,seeOutputFcn.%hObjecthandletofigure%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%varargincommandlineargumentstoMain(seeVARARGIN)%ChoosedefaultcommandlineoutputforMainhandles.output=hObject;%Updatehandlesstructureguidata(hObject,handles);%UIWAITmakesMainwaitforuserresponse(seeUIRESUME)%uiwait(handles.figure1);%---Outputsfromthisfunctionarereturnedtothecommandline.functionvarargout=Main_OutputFcn(hObject,eventdata,handles)%varargoutcellarrayforreturningoutputargs(seeVARARGOUT);%hObjecthandletofigure%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%Getdefaultcommandlineoutputfromhandlesstructurevarargout{1}=handles.output;%---Executesonbuttonpressinpushbutton_datain.functionpushbutton_datain_Callback(hObject,eventdata,handles)%hObjecthandletopushbutton_datain(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)close(gcf);run('untitled');%---Executesonbuttonpressinpushbutton_find.functionpushbutton_find_Callback(hObject,eventdata,handles)%hObjecthandletopushbutton_find(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)close(gcf);run('chaxuntongji');%---Executesonbuttonpressinpushbutton_change.functionpushbutton_change_Callback(hObject,eventdata,handles)%hObjecthandletopushbutton_change(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)close(gcf);run('change');%---Executesonbuttonpressinpushbutton_delete.functionpushbutton_delete_Callback(hObject,eventdata,handles)%hObjecthandletopushbutton_delete(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)close(gcf);run('shanchu');%---Executesduringobjectcreation,aftersettingallproperties.functionfigure1_CreateFcn(hObject,eventdata,handles)%hObjecthandletofigure1(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesempty-handlesnotcreateduntilafterallCreateFcnscalledMain=axes('units','normalized','position',[0011]);uistack(Main,'down')II=imread('pic4.bmp');image(II)colormapgrayset(Main,'handlevisibility','off','visible','off');%--------------------------------------------------------------------%%function_Callback(hObject,eventdata,handles)%hObjecthandleto(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%--------------------------------------------------------------------%%function_Callback(hObject,eventdata,handles)%hObjecthandleto(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%--------------------------------------------------------------------%%function_Callback(hObject,eventdata,handles)%hObjecthandleto(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%---Executesduringobjectdeletion,beforedestroyingproperties.functionfigure1_DeleteFcn(hObject,eventdata,handles)%hObjecthandletofigure1(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%--------------------------------------------------------------------functionmessage_Callback(hObject,eventdata,handles)%hObjecthandletoclose(seeGCBO)%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)button=msgbox({'GUI学生成绩管理系统';'组长:邱晴'