MATLAB仿真平面电磁波在不同媒介分界面上的入射Word格式文档下载.docx

上传人:b****5 文档编号:21270550 上传时间:2023-01-29 格式:DOCX 页数:16 大小:210.37KB
下载 相关 举报
MATLAB仿真平面电磁波在不同媒介分界面上的入射Word格式文档下载.docx_第1页
第1页 / 共16页
MATLAB仿真平面电磁波在不同媒介分界面上的入射Word格式文档下载.docx_第2页
第2页 / 共16页
MATLAB仿真平面电磁波在不同媒介分界面上的入射Word格式文档下载.docx_第3页
第3页 / 共16页
MATLAB仿真平面电磁波在不同媒介分界面上的入射Word格式文档下载.docx_第4页
第4页 / 共16页
MATLAB仿真平面电磁波在不同媒介分界面上的入射Word格式文档下载.docx_第5页
第5页 / 共16页
点击查看更多>>
下载资源
资源描述

MATLAB仿真平面电磁波在不同媒介分界面上的入射Word格式文档下载.docx

《MATLAB仿真平面电磁波在不同媒介分界面上的入射Word格式文档下载.docx》由会员分享,可在线阅读,更多相关《MATLAB仿真平面电磁波在不同媒介分界面上的入射Word格式文档下载.docx(16页珍藏版)》请在冰豆网上搜索。

MATLAB仿真平面电磁波在不同媒介分界面上的入射Word格式文档下载.docx

1垂直极化波

垂直极化波对理想介质斜入射如图所示,由折射和反射定律,我们可以得到在任意媒质中的场强。

在第一煤质中

在第二煤质中

图表2垂直极化波斜入射

2平行极化波

平行极化波对理想介质斜入射如图所示,由折射和反射定律,我们可以得到在任意媒质中的场强。

图表3平行极化波斜入射

 

3、正弦平面波对理想导体表面的斜入射

垂直极化波对理想导体斜入射如图所示,入射波在导体表面发生全反射,我们可以得到在任意媒质中的场强。

2平行极化波

四、实验程序;

实验程序比较长,可参见此文件夹中的文件。

(附件)

生成的界面:

五、实验总结;

这次实验总体感觉收获比较大。

首先,之前学习的MATLAB都是基于图片之类的编程,没有学习过GUI的使用。

通过这次实验,我初步学习了一下GUI,算是现学现卖吧。

虽然学的不是很深,但是对于基本的功能的使用应该还是可以的。

再次,对于电磁场地学习都是停留在书面作业上,通过这次实验,加深了我对电磁场传播的理解。

最后,其实如果只有我一个人,应该是很难完成这次实验的,在这期间有同学的帮忙和合作。

通过这次实验,感受到合作的力量,不懂要问呐。

程序代码:

functionvarargout=jm(varargin)

%JMM-filefor

%JM,byitself,createsanewJMorraisestheexisting

%singleton*.

%

%H=JMreturnsthehandletoanewJMorthehandleto

%theexistingsingleton*.

%JM('

CALLBACK'

hObject,eventData,handles,...)callsthelocal

%functionnamedCALLBACKinwiththegiveninputarguments.

Property'

'

Value'

...)createsanewJMorraisesthe

%existingsingleton*.Startingfromtheleft,propertyvaluepairsare

%appliedtotheGUIbeforejm_OpeningFcngetscalled.An

%unrecognizedpropertynameorinvalidvaluemakespropertyapplication

%stop.Allinputsarepassedtojm_OpeningFcnviavarargin.

%*SeeGUIOptionsonGUIDE'

sToolsmenu.Choose"

GUIallowsonlyone

%instancetorun(singleton)"

.

%Seealso:

GUIDE,GUIDATA,GUIHANDLES

%Edittheabovetexttomodifytheresponsetohelpjm

%LastModifiedbyGUIDE13-May-201100:

01:

24

%Begininitializationcode-DONOTEDIT

gui_Singleton=1;

gui_State=struct('

gui_Name'

mfilename,...

'

gui_Singleton'

gui_Singleton,...

gui_OpeningFcn'

@jm_OpeningFcn,...

gui_OutputFcn'

@jm_OutputFcn,...

gui_LayoutFcn'

[],...

gui_Callback'

[]);

ifnargin&

&

ischar(varargin{1})

=str2func(varargin{1});

end

ifnargout

[varargout{1:

nargout}]=gui_mainfcn(gui_State,varargin{:

});

else

gui_mainfcn(gui_State,varargin{:

%Endinitializationcode-DONOTEDIT

%---Executesjustbeforejmismadevisible.

functionjm_OpeningFcn(hObject,eventdata,handles,varargin)

%Thisfunctionhasnooutputargs,seeOutputFcn.

%hObjecthandletofigure

%eventdatareserved-tobedefinedinafutureversionofMATLAB

%handlesstructurewithhandlesanduserdata(seeGUIDATA)

%varargincommandlineargumentstojm(seeVARARGIN)

%Choosedefaultcommandlineoutputforjm

=hObject;

%Updatehandlesstructure

guidata(hObject,handles);

%UIWAITmakesjmwaitforuserresponse(seeUIRESUME)

%uiwait;

%---Outputsfromthisfunctionarereturnedtothecommandline.

functionvarargout=jm_OutputFcn(hObject,eventdata,handles)

%varargoutcellarrayforreturningoutputargs(seeVARARGOUT);

%Getdefaultcommandlineoutputfromhandlesstructure

varargout{1}=;

%---Executesonbuttonpressinpushbutton1.

functionpushbutton1_Callback(hObject,eventdata,handles)

axes;

mu1=1;

%c´

Å

µ

¼

Â

Ê

1

mu2=1;

2

w=get;

w=str2num;

«

»

¯

Æ

a=get;

epsilon1=str2num;

é

Ö

Ä

Ï

à

Ô

½

ç

³

£

ý

b=get;

epsilon2=str2num%½

;

k1=w*sqrt(mu1*epsilon1);

k2=w*sqrt(mu2*epsilon2);

sita=get;

sita=str2num;

sita1=asind(k1*sind(sita)./k2);

xv=0:

pi/10:

20*pi;

ym=xv;

%plot(ym)

er=;

fori=1:

900

yv=sin(xv+pi/30*i);

%%>

>

²

¨

Ð

Î

º

x=-xv*sind(sita);

y=xv*cosd(sita);

x=x+cosd(sita)*yv;

y=y+sind(sita)*yv;

xv1=0:

yv1=sqrt(1-er*er)*sin(xv-pi/30*i);

·

´

É

ä

x1=xv1*sind(sita);

y1=xv1*cosd(sita);

x1=x1-2*cosd(sita)*yv1;

y1=y1+sind(sita)*yv1;

xv2=0:

yv2=er*sin(xv-pi/30*i);

Õ

Û

x2=xv2*sind(sita1);

y2=xv2*cosd(sita1);

x2=x2-cosd(sita1)*yv2;

y2=y2+sind(sita1)*yv2;

%plot(zeros(1:

81))

%plot(-40:

:

40,0)

%holdon

%plot(0,-60:

60)

plot(x,y,x1,y1,x2,-y2,[-5050],[00],'

k'

[00],[-5050],'

);

su=get;

su=str2num;

sudu=1/su;

pause(sudu)

functionedit2_Callback(hObject,eventdata,handles)

%hObjecthandletoedit2(seeGCBO)

%Hints:

get(hObject,'

String'

)returnscontentsofedit2astext

%str2double(get(hObject,'

))returnscontentsofedit2asadouble

%---Executesduringobjectcreation,aftersettingallproperties.

functionedit2_CreateFcn(hObject,eventdata,handles)

%handlesempty-handlesnotcreateduntilafterallCreateFcnscalled

%Hint:

editcontrolsusuallyhaveawhitebackgroundonWindows.

%SeeISPCandCOMPUTER.

ifispc&

isequal(get(hObject,'

BackgroundColor'

),get(0,'

defaultUicontrolBackgroundColor'

))

set(hObject,'

white'

%hObjecthandletopushbutton1(seeGCBO)

functionedit3_Callback(hObject,eventdata,handles)

%hObjecthandletoedit3(seeGCBO)

)returnscontentsofedit3astext

))returnscontentsofedit3asadouble

functionedit3_CreateFcn(hObject,eventdata,handles)

functionedit1_Callback(hObject,eventdata,handles)

%hObjecthandletoedit1(seeGCBO)

)returnscontentsofedit1astext

))returnscontentsofedit1asadouble

functionedit1_CreateFcn(hObject,eventdata,handles)

functionedit5_Callback(hObject,eventdata,handles)

functionedit5_CreateFcn(hObject,eventdata,handles)

functionedit8_Callback(hObject,eventdata,handles)

%hObjecthandletoedit8(seeGCBO)

)returnscontentsofedit8astext

))returnscontentsofedit8asadouble

functionedit8_CreateFcn(hObject,eventdata,handles)

functionedit10_Callback(hObject,eventdata,handles)

%---Executesduringob

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 工程科技 > 纺织轻工业

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1