版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、B1:xx光束传播轨迹的模拟设计任务:作图表示xx光束的传播轨迹(1)基模高斯光束在自由空间的传播轨迹;(2)基模高斯光束经单透镜变换前后的传播轨迹;(3)基模高斯光束经调焦望远镜变换前后的传播轨迹。function vargout = B1(vargin)% B1 M-file for B1.fig%B1, by itself, creates a new B1 or raises the existing %singleton*.%H = B1 returns the handle to a new B1 or the handle to %the existing singleton*.
2、%B1(CALLBACK,hObject,eventData,handles,.) calls the local %function named CALLBACK in B1.M with the given input arguments.%B1(Property,Value,.) creates a new B1 or raises the %existing singleton*.Starting from the left, property value pairs are %applied to the GUI before B1_OpeningFunction gets call
3、ed.An %unrecognized property name or invalid value makes property application GUIDE, GUIDATA, GUIHANDLES % Copyright 2002-2003 The MathWorks, Inc.% Edit the above text to modify the response to help B1% Last Modified by GUIDE v2.5 21-Oct-2010 17:52:32% Begin initialization code - DO NOT EDITgui_Sing
4、leton = 1;gui_State = struct(gui_Name,mfilename, .gui_Singleton,gui_Singleton, . gui_Callback,);if nargin & ischar(vargin1)gui_State.gui_Callback = str2func(vargin1);end if nargout );else );end % End initialization code - DO NOT EDIT% - Executes just before B1 is made visible. % hObjecthandle to fig
5、ure % eventdatareserved - to be defined in a future version of MATLAB % handlesstructure with handles and user data (see GUIDATA) handles.output = hObject;% Update handles structureguidata(hObject, handles);% UIWAIT makes B1 wait for user response (see UIRESUME)% uiwait(handles.figure1); % vargoutce
6、ll array for returning output args (see VARGOUT);% hObjecthandle to figure % eventdatareserved - to be defined in a future version of MATLAB % handlesstructure with handles and user data (see GUIDATA) vargout1 = handles.output;% - Executes on button press in pushbutton1.function pushbutton1_Callback
7、(hObject, eventdata, handles)% hObjecthandle to pushbutton1 (see GCBO)% eventdatareserved - to be defined in a future version of MATLAB % handlesstructure with handles and user data (see GUIDATA)handles.W0=str2double(get(handles.editW0,string);handles.B=str2double(get(handles.editB,string);guidata(h
8、Object,handles);Z=-100:100;W=(handles.W0*104)*(sqrt(1+handles.B2*(Z*106).2./(pi2*(handles.W0*104)4);plot(Z,W,b,Z,-W,b);% - Executes on button press in pushbutton2.function pushbutton2_Callback(hObject, eventdata, handles)% hObjecthandle to pushbutton2 (see GCBO)% eventdatareserved - to be defined in
9、 a future version of MATLAB % handlesstructure with handles and user data (see GUIDATA)handles.W0=str2double(get(handles.editW0,string);handles.B=str2double(get(handles.editB,string)/1000;handles.Z=str2double(get(handles.editZ,string)*1000;handles.f=str2double(get(handles.editf,string)*10;L=(handles
10、.Z-handles.f)*handles.f2/(handles.Z-handles.f)2+pi2*handles.W04/handles.B2)+handles.f;T1=-handles.Z:1:handles.Z;Y1=handles.W0*sqrt(1+T1.2*handles.B2/(pi2*handles.W04);T2=handles.Z:1:(handles.Z+2*L);W1=(handles.W0*handles.f/sqrt(handles.f-handles.Z)2+pi2*handles.W04/handles.B2);Y2=W1*sqrt(1+(T2-handl
11、es.Z-L).2/(pi2*W14/handles.B2);plot(T1,Y1,b,T1,-Y1,b,T2,Y2,r,T2,-Y2,r);% - Executes on button press in pushbutton3.function pushbutton3_Callback(hObject, eventdata, handles)% hObjecthandle to pushbutton3 (see GCBO)% eventdatareserved - to be defined in a future version of MATLAB % handlesstructure w
12、ith handles and user data (see GUIDATA)handles.W0=str2double(get(handles.editW0,string);handles.B=str2double(get(handles.editB,string)/1000;handles.f1=str2double(get(handles.editf1,string)*10;handles.Z=str2double(get(handles.editZ,string)*1000;handles.f2=str2double(get(handles.editf2,string)*10;L=(h
13、andles.Z-handles.f1)*handles.f12/(handles.Z-handles.f1)2+pi2*handles.W04/handles.B2)+handles.f1;T1=-handles.Z:1:handles.Z;Y1=handles.W0*sqrt(1+T1.2*handles.B2/(pi2*handles.W04);T2=handles.Z:1:(handles.Z+L+handles.f2);W1=(handles.W0*handles.f1./sqrt(handles.f1-handles.Z)2+pi2*handles.W04./handles.B2)
14、;Y2=W1*sqrt(1+(T2-handles.Z-L).2./(pi2*W14/handles.B2);W2=W1*sqrt(1+handles.f22/(pi2*W14/handles.B2);T3=(handles.Z+L+handles.f2):1:3*(handles.Z+L+handles.f2);Y3=W2;plot(T1,Y1,b,T1,-Y1,b,T2,Y2,r,T2,-Y2,r,T3,Y3,g,T3,-Y3,g);grid on;function editW0_Callback(hObject, eventdata, handles)% hObjecthandle to
15、 editW0 (see GCBO)% eventdatareserved - to be defined in a future version of MATLAB % handlesstructure with handles and user data (see GUIDATA)% Hints: get(hObject,String) returns contents of editW0 as text%str2double(get(hObject,String) returns contents of editW0 as a double % - Executes during obj
16、ect creation, after setting all properties. % hObjecthandle to editW0 (see GCBO)% eventdatareserved - to be defined in a future version of MATLAB % Hint: edit controls usually have a white background on Windows.%See ISPC and COMPUTER.if ispc set(hObject,BackgroundColor,white);else set(hObject,Backgr
17、oundColor,get(0,defaultUicontrolBackgroundColor);end function editB_Callback(hObject, eventdata, handles)% hObjecthandle to editB (see GCBO)% eventdatareserved - to be defined in a future version of MATLAB % handlesstructure with handles and user data (see GUIDATA)% Hints: get(hObject,String) return
18、s contents of editB as text%str2double(get(hObject,String) returns contents of editB as a double % - Executes during object creation, after setting all properties. % hObjecthandle to editB (see GCBO)% eventdatareserved - to be defined in a future version of MATLAB % Hint: edit controls usually have
19、a white background on Windows.%See ISPC and COMPUTER.if ispc set(hObject,BackgroundColor,white);else set(hObject,BackgroundColor,get(0,defaultUicontrolBackgroundColor);end function editZ_Callback(hObject, eventdata, handles)% hObjecthandle to editZ (see GCBO)% eventdatareserved - to be defined in a
20、future version of MATLAB % handlesstructure with handles and user data (see GUIDATA)% Hints: get(hObject,String) returns contents of editZ as text%str2double(get(hObject,String) returns contents of editZ as a double % - Executes during object creation, after setting all properties. % hObjecthandle t
21、o editZ (see GCBO)% eventdatareserved - to be defined in a future version of MATLAB % Hint: edit controls usually have a white background on Windows.%See ISPC and COMPUTER.if ispc set(hObject,BackgroundColor,white);else set(hObject,BackgroundColor,get(0,defaultUicontrolBackgroundColor);end function
22、editf_Callback(hObject, eventdata, handles)% hObjecthandle to editf (see GCBO)% eventdatareserved - to be defined in a future version of MATLAB % handlesstructure with handles and user data (see GUIDATA)% Hints: get(hObject,String) returns contents of editf as text%str2double(get(hObject,String) ret
23、urns contents of editf as a double % - Executes during object creation, after setting all properties. % hObjecthandle to editf (see GCBO)% eventdatareserved - to be defined in a future version of MATLAB % Hint: edit controls usually have a white background on Windows.%See ISPC and COMPUTER.if ispc s
24、et(hObject,BackgroundColor,white);else set(hObject,BackgroundColor,get(0,defaultUicontrolBackgroundColor);end function editf1_Callback(hObject, eventdata, handles)% hObjecthandle to editf1 (see GCBO)% eventdatareserved - to be defined in a future version of MATLAB % handlesstructure with handles and
25、 user data (see GUIDATA)% Hints: get(hObject,String) returns contents of editf1 as text%str2double(get(hObject,String) returns contents of editf1 as a double % - Executes during object creation, after setting all properties. % hObjecthandle to editf1 (see GCBO)% eventdatareserved - to be defined in
26、a future version of MATLAB % Hint: edit controls usually have a white background on Windows.%See ISPC and COMPUTER.if ispc set(hObject,BackgroundColor,white);else set(hObject,BackgroundColor,get(0,defaultUicontrolBackgroundColor);end function editf2_Callback(hObject, eventdata, handles)% hObjecthand
27、le to editf2 (see GCBO)% eventdatareserved - to be defined in a future version of MATLAB % handlesstructure with handles and user data (see GUIDATA)% Hints: get(hObject,String) returns contents of editf2 as text%str2double(get(hObject,String) returns contents of editf2 as a double % - Executes during object creation, after setting all properties. % hObjecthandle to editf2 (see GCBO)% eventdatareserved - to be defined in a future version of MATLAB % Hint: edit
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 水坝拆除爆破服务协议
- 城市住宅区电梯施工合同
- 交通强弱电布线改造协议
- 体食堂炊事员劳动合同
- 燃油运输货车司机招聘合同
- 铁路建设施工合同毛利计算
- 高铁车站粉刷施工合同模板
- 设计合同法律责任
- 公路养护与维修劳务合同
- 水利工程转让协议书
- 钱转入别人帐户协议书
- President-election-美国总统选举流程
- 生命科学简史智慧树知到期末考试答案章节答案2024年中国科学技术大学
- 过程分析乌龟图
- 《公路工程集料试验规程》JTG-3432-2024考核试题及答案文档
- 血液透析疑难病例讨论
- IQC来料检验单范本
- 急诊科夜班护士准入制度
- (2024年)治疗肩周炎课件
- 老人爱眼护眼方案
- 地震和防震知识课件
评论
0/150
提交评论