资源描述:
《课设论文matlabgui界面设计》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、、functionvarargout=jy01(varargin)%JY01M-fileforjy01.fig%JY01,byitself,createsanewJY01orraisestheexisting%singleton*.%%H=JY01returnsthehandletoanewJY01orthehandleto%theexistingsingleton*.%%JY01('CALLBACK',hObject,eventData,handles,...)callsthelocal%functionnamedCALLBACKinJY01.Mwiththegiveninputa
2、rguments.%%JY01('Property','Value',...)createsanewJY01orraisesthe%existingsingleton*.Startingfromtheleft,propertyvaluepairsare%appliedtotheGUIbeforejy01_OpeningFcngetscalled.An%unrecognizedpropertynameorinvalidvaluemakespropertyapplication%stop.Allinputsarepassedtojy01_OpeningFcnviavarargin.%%*
3、SeeGUIOptionsonGUIDE'sToolsmenu.Choose"GUIallowsonlyone%instancetorun(singleton)".%%Seealso:GUIDE,GUIDATA,GUIHANDLES%Edittheabovetexttomodifytheresponsetohelpjy01%LastModifiedbyGUIDEv2.501-Jul-200513:30:37%Begininitializationcode-DONOTEDITgui_Singleton=1;gui_State=struct('gui_Name',mfilename,..
4、.'gui_Singleton',gui_Singleton,...'gui_OpeningFcn',@jy01_OpeningFcn,...'gui_OutputFcn',@jy01_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{:});else
5、gui_mainfcn(gui_State,varargin{:});end%Endinitializationcode-DONOTEDIT%---Executesjustbeforejy01ismadevisible.functionjy01_OpeningFcn(hObject,eventdata,handles,varargin)%Thisfunctionhasnooutputargs,seeOutputFcn.%hObjecthandletofigure%eventdatareserved-tobedefinedinafutureversionofMATLAB%handles
6、structurewithhandlesanduserdata(seeGUIDATA)%varargincommandlineargumentstojy01(seeVARARGIN)%Choosedefaultcommandlineoutputforjy01handles.output=hObject;%Updatehandlesstructureguidata(hObject,handles);%UIWAITmakesjy01waitforuserresponse(seeUIRESUME)%uiwait(handles.figure1);%---Outputsfromthisfun
7、ctionarereturnedtothecommandline.functionvarargout=jy01_OutputFcn(hObject,eventdata,handles)%varargoutcellarrayforreturningoutputargs(seeVARARGOUT);%hObjecthandletofigure%eventdatareserved-tobedefinedinafutureversionofMATLAB%handl