blob: 304f6df510753c9f214ebe01d86f6c1156b429d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Ex 76 Page 414
clc;clear;close;
// Given
Zo=50;//ohm
VSWR=2;//ratio
//lm=0.2*lamda
lmBYlamda=0.2
betaINTOlamda=2*%pi
rho=(VSWR-1)/(VSWR+1);//reflection coefficient
theta=2*betaINTOlamda*lmBYlamda;//radian
//exp(j*theta)=cos(theta)+%i*sin(theta)
ZL=Zo*(1-rho*(cos(theta)+%i*sin(theta)))/(1+rho*(cos(theta)+%i*sin(theta)));//ohm
Rs=real(ZL);//ohm
Xs=abs(imag(ZL));//ohm(capacitive)
printf("\n Rs = %0.1f ohm",Rs)
printf("\n Xs = %0.1f ohm",Xs)
YL=(1/ZL)*1000;//mS
Rp=1000/real(YL);//ohm
Xp=1000/imag(YL);//ohm
printf("\n Rp = %0.1f ohm",Rp)
printf("\n Xp = %0.f ohm",Xp)
|