2. Write a Matlab program that would prompt the user to input the physical param
ID: 2268289 • Letter: 2
Question
2. Write a Matlab program that would prompt the user to input the physical parameters for the parallel plate transmission line (the width of each plate in mm and the thickness of the insulation between plates in mm) and will compute and display the characteristic impedance, complex propagation constant, and attenuation and phase constants for this transmission line Your program should check that the entered width and height are positive and that width is greater than the height prior to computing and display an error message if this is the case. Assume the copper conductors and the air line properties from problem 1 and 1 GHz transmission frequencyExplanation / Answer
matlab code for given question
clear all;clc;
%for input of transmission line physical parameters
f=1e9;%frequency
sigma=5.8e7;%conductivity of copper
u0=4*pi*1e-7;%permeability of space
e0=8.854e-12;%permitivity of space
s0=0;%conductivity of dielectric media which is air
disp('Enter the physical parameter of tranmission line ')
w=input('Enter the width of line w in mm = ');
w=w*1e-3;
d=input('Enter the hight of line d in mm = ');
d=d*1e-3;
if ((w>0)&&(d>0)&&(w>d))
%calculation for primary constant of line
delta=1/sqrt(pi*u0*f*sigma);
r=2/w*delta*sigma;
l=(u0*d)/w;
g=(s0*w)/d;
c=(e0*w)/d;
%calculation for secondary constant of line
z0=sqrt((r+j*2*pi*f*l)/(g+j*2*pi*f*c));
y0=sqrt((r+j*2*pi*f*l)*(g+j*2*pi*f*c));
alpha=real(y0);
beta=imag(y0);
fprintf('Characteristic impedence = %f ohm. ',z0);
fprintf('complex propagation constant %f+j%f. unit per meter ',alpha,beta);
fprintf('Attenuation constant = %f unit per meter. ',alpha);
fprintf('Phase constant = %f. radian per meter ',beta);
else
disp('you enter wrong parameters');
end
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.