Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

calculate the reflection coefficient using MATLAB program

Status
Not open for further replies.

cherne-he

Junior Member level 1
Joined
Oct 13, 2014
Messages
17
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
131
Hi, evryone
I wrote a program using MATLAB to calculate the reflection coefficient, but the value of the RC is 3.8282. so the program is incorrect. Could you check it for me? Thank you in advance! The program is below.
clc
clear
epsilon=[10.98+6.96j 14.36+11.15j 7.89+3.63j 2.91+0.113j]; %relative permittivity
h=[5.1 8 3.56 3.66]; %thickness of layers
z0=377; %the free-space impedance
f=6*10^9; %frequency of EM
c=2.9979*10^8; %the light speed

for a=1:4
eta(a)=z0./sqrt(epsilon(a)); %the EM intrinsic wave impedence
k(a)=(2*pi*f*h(a)*sqrt(epsilon(a))./c)*1i; %the complex wave number
end

z(1)=(eta(1)*tan(k(1)))*1i;
for a=2:4
z(a)=eta(a)*((z(a-1)+(eta(a)*tan(k(a)))*1i)./(eta(a)+(z(a-1)*tan(k(a)))*1i));
end
RC=abs((z(4)-z0)./(z(4)+z0)) %the reflection efficient
reference.jpg
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top