Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

MATLAB PROBLEM (electromagnetics): Write a MATLAB code to compute the input refl

ID: 2080956 • Letter: M

Question

MATLAB PROBLEM (electromagnetics): Write a MATLAB code to compute the input reflection coefficient and input impedance of a lossless multilayer dielectric structure with normal incidence. You can assume the layers are non-magnetic. Your code should have the following input and output:

Use the below image for additional reference:

Input: Permittivity of each layer as well as the input and output media: so, s1, E2, EL Length of each dielectric layer: 1, di, d2, dN Frequency: f Output Input reflection coefficient: Tin Input impedance: Zin

Explanation / Answer

enter the following program in matlab

N=10; % number of dielectric layers

E0=8.85e-12;

mu0=1.26e-6;

eeta0=120*pi;

c=3e8;

f=50; % input for frequency

Er=1:10;

E=[E0 Er]; % input dielectric strength of each layer

dn=[3,4,2,6,7,8,9,10,4,3]; % input length of each dielectric layer

Zl=eeta0./sqrt(Er);

Z0=eeta0./sqrt(E0);

Z=[Z0 Zl];

r=2*pi*f*sqrt(Er)/c;

Zin=Z0*(Zl+j.*Z0.*tan(r.*dn))./(Z0+j.*Zl.*tan(r.*dn)); % output of input impedence

L=(Zin-Zl)./(Zin+Zl); % output of input reflection coefficient