blob: 6d2c35a77d83d6cd5be4bc3f333fe95eb7834d3e (
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
36
37
38
39
40
41
42
43
44
45
|
//Page Number: 389
//Example 8.1
clc;
//Given
Rf=0.5; //ohm
Rr=1; //ohm
Ls=0.3D-9; //H
Cj=0.1D-12; //F
f=3.18D+9; //Hz
Z0=50; //ohm
Zf=Rf+(%i*round(2*%pi*f*Ls));
Zr=Rr+(%i*(round(2*%pi*f*Ls)-(1/(2*%pi*f*Cj))));
//Series Configuration
disp('Series Configuration');
//Insertion Loss
x=(2*Z0)/((2*Z0)+Zf);
x1=sqrt((real(x))^2+(imag(x))^2);
IN=-20*log10(x1);
disp('dB',IN,'Insertion Loss:');
//Isolation Loss
y=(2*Z0)/((2*Z0)+Zr);
y1=sqrt((real(y))^2+(imag(y))^2);
IS=-20*log10(y1);
disp('dB',IS,'Isolation Loss:');
//Shunt Configuration
disp('Shunt Configuration');
//Insertion Loss
a=(2*Zr)/((2*Zr)+Z0);
a1=sqrt((real(a))^2+(imag(a))^2);
INs=-20*log10(a1);
disp('dB',INs,'Insertion Loss:');
//Isolation Loss
b=(2*Zf)/((2*Zf)+Z0);
b1=sqrt((real(b))^2+(imag(b))^2);
ISs=-20*log10(b1);
disp('dB',ISs,'Isolation Loss:');
//Answer for Series configuration insertion loss is 0.058 but is given as 0.58db
|