summaryrefslogtreecommitdiff
path: root/3281/CH4/EX4.13/ex4_13.sce
diff options
context:
space:
mode:
Diffstat (limited to '3281/CH4/EX4.13/ex4_13.sce')
-rwxr-xr-x3281/CH4/EX4.13/ex4_13.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/3281/CH4/EX4.13/ex4_13.sce b/3281/CH4/EX4.13/ex4_13.sce
new file mode 100755
index 000000000..77b829fa7
--- /dev/null
+++ b/3281/CH4/EX4.13/ex4_13.sce
@@ -0,0 +1,22 @@
+//Page Number: 215
+//Example 4.13
+clc;
+//Given
+p=100; //mW
+//As 2 and 3 are matched terminals
+x=1/2;
+y=1/sqrt(2);
+s=[x -x y;-x 0 y;y y 0];
+
+//Power delivered
+//Port 1
+p1=p*(1-s(1,1)^2);
+disp('mW',p1,'Power at port 1:');
+
+//Port2
+p2=p*s(2,1)^2;
+disp('mW',p2,'Power at port 2:');
+
+//Port 3
+p3=p*s(3,1)^2;
+disp('mW',p3,'Power at port 3:');