資源描述:
《MATLAB 高斯光束傳播軌跡的模擬.doc》由會員上傳分享,免費在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫。
1、B1:高斯光束傳播軌跡的模擬設(shè)計任務(wù):作圖表示高斯光束的傳播軌跡(1)基模高斯光束在自由空間的傳播軌跡;(2)基模高斯光束經(jīng)單透鏡變換前后的傳播軌跡;(3)基模高斯光束經(jīng)調(diào)焦望遠(yuǎn)鏡變換前后的傳播軌跡。functionvarargout=B1(varargin)%B1M-fileforB1.fig%B1,byitself,createsanewB1orraisestheexisting%singleton*.%%H=B1returnsthehandletoanewB1orthehandleto%theexistingsingleton*.%%
2、B1('CALLBACK',hObject,eventData,handles,...)callsthelocal%functionnamedCALLBACKinB1.Mwiththegiveninputarguments.%%B1('Property','Value',...)createsanewB1orraisesthe%existingsingleton*.Startingfromtheleft,propertyvaluepairsare%appliedtotheGUIbeforeB1_OpeningFunctiongetscall
3、ed.An%unrecognizedpropertynameorinvalidvaluemakespropertyapplication%stop.AllinputsarepassedtoB1_OpeningFcnviavarargin.%%*SeeGUIOptionsonGUIDE'sToolsmenu.Choose"GUIallowsonlyone%instancetorun(singleton)".%%Seealso:GUIDE,GUIDATA,GUIHANDLES%Copyright2002-2003TheMathWorks,Inc
4、.%EdittheabovetexttomodifytheresponsetohelpB1%LastModifiedbyGUIDEv2.521-Oct-201017:52:32%Begininitializationcode-DONOTEDITgui_Singleton=1;gui_State=struct('gui_Name',mfilename,...'gui_Singleton',gui_Singleton,...'gui_OpeningFcn',@B1_OpeningFcn,...'gui_OutputFcn',@B1_Output
5、Fcn,...'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%---Exe
6、cutesjustbeforeB1ismadevisible.functionB1_OpeningFcn(hObject,eventdata,handles,varargin)%Thisfunctionhasnooutputargs,seeOutputFcn.%hObjecthandletofigure%eventdatareserved-tobedefinedinafutureversionofMATLAB%handlesstructurewithhandlesanduserdata(seeGUIDATA)%varargincommand
7、lineargumentstoB1(seeVARARGIN)%ChoosedefaultcommandlineoutputforB1handles.output=hObject;%Updatehandlesstructureguidata(hObject,handles);%UIWAITmakesB1waitforuserresponse(seeUIRESUME)%uiwait(handles.figure1);%---Outputsfromthisfunctionarereturnedtothecommandline.functionva
8、rargout=B1_OutputFcn(hObject,eventdata,handles)%varargoutcellarrayforreturningoutputargs(