You are on page 1of 5

MATLAB PROGRAMS FOR VERIFICATIION

OF
MICROWAVE ENGINEERING NUMERICALS
1.Calculate the impedance and admittance of a unit length long
transmission line where the equivalent circuit components are
L= 0.002µH/unit length, C=0.012 pF/unit length, R=0.015
ohms/unit length, G=0.0001 mhos/unit length. The frequency
is 1.6GHz .

clc %clears the command window


clear %clears variables
disp('program will calculate impedance and admittance of a
transmission line,')

%prompt for input values


R=input('enter resistance of line , ohms/unit length:');
C=input('enter capacitance of transmission line , pF/unit length:');
L=input('enter inductance of transmission line ,µH/unit length:');
f=input('enter frequency,Hz:');
G=input('enter conductance of transmission line , mhos/unit length:');
%perform calculation
display results
w=2*pi*f %w=angular frequency
Z=complex(R,w*L)
mZ=abs(Z) %magnitude of Z
angZ=180*angle(Z)/pi %angle of Z

Y=complex(G,w*C)
mY=abs(Y) %magnitude of Y
angY=180*angle(Y)/pi %angle of Y
2.What is the VSWR and the equivalent
return loss of a load if the absolute value of
the reflection co-efficient is 0.20.
clc %clears the command window
clear %clears variables
disp ('program will calculate VSWR and the
return loss of a load,')
rho=input('enter reflection co-efficient :');
display results
VSWR= (1+rho)/(1-rho)
RL = -20*log10(rho)
LAB TASKS

1.What is the waveguide wavelength on a waveguide


transmission line if the cutoff frequency is 6.56GHz at
operating frequency of 10GHz? Use MATLAB program
for all computations.
Hint :
Use sqrt function to resolve square root

2. Calculate the mismatch loss on an antenna having


2:1 VSWR. Use MATLAB program for all computations.

You might also like