summaryrefslogtreecommitdiff
path: root/1523/CH11/EX11.25/ex11_25.sce
blob: 19faf83a4440e4eca9c44320d4a45ac45e9278aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//Two-Port Networks : example 11.25 :(pg11.55 & 11.56)
printf("\nApplying KCL to Node 1 \nI1 = (-3/2)V1 - V2- - -(i)");
printf("\nApplying KCL to Node 2 \nI2 = 2V1 + 2V2 - - - -(ii)");
//observing (i) & (ii)
printf("\nY-parameters:");
a=(-3/2);b=(-1);c=2;d=2;
disp([a b;c d]);
dY=((a*d)-(b*c));
Z11=(d/dY);
Z12=(-b/dY);
Z21=(-c/dY);
Z22=(a/dY);
printf("\ndY=Y11.Y22-Y12.Y21 =%.f",dY);
printf("\nZ11 = Y22/dY = %.f Ohm",Z11);
printf("\nZ12 = -Y12/dY = %.f Ohm",Z12);
printf("\nZ21 = -Y21/-dY = %.f Ohm",Z21);
printf("\nZ22 = Y11/dY = %.1f Ohm",Z22);
printf("\nZ-parameters :");
disp([Z11 Z12;Z21 Z22]);