summaryrefslogtreecommitdiff
path: root/1574/CH8/EX8.19/TL_Ex_8_19.sce
blob: d9911bd9d76949cc98dc467ea1ebfc014ff20908 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
clc
//Chapter8
//Example8.19, page no 350
//Given
Zo=100// Characteristic Impedance
P=100e-3//Load power
Zr=140//Load Resistance
f=100e3// Operating freq
//a
K=(Zr-Zo)/(Zo+Zr)//Vtg Reflection coeff

//b
S=(1+K)/(1-K)//VSWR

//c+d
Emax=sqrt(Zr*P)//Max line vltg
Imin=Emax/Zr//Min line current

Emin=Emax/S// Min line vltg
Imax=S*Imin//Max line current

//e
R=14000/40

Zr=(Zo^2)/R//
mprintf('\nThe voltage reflection coeff is %f\nThe VSWR is %f\n\n\nThe Max and min voltage and crresponding crrent is\n Emax= %fV Imin= %fmA\n Emin= %fV Imax= %fmA\n\n The Termination resistance should be %f ohm',K,S,Emax,Imin*1e3,Emin,Imax*1e3,Zr)