summaryrefslogtreecommitdiff
path: root/2219/CH4/EX4.2/Ex4_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '2219/CH4/EX4.2/Ex4_2.sce')
-rwxr-xr-x2219/CH4/EX4.2/Ex4_2.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/2219/CH4/EX4.2/Ex4_2.sce b/2219/CH4/EX4.2/Ex4_2.sce
new file mode 100755
index 000000000..1acd97fc8
--- /dev/null
+++ b/2219/CH4/EX4.2/Ex4_2.sce
@@ -0,0 +1,14 @@
+// chapter 4 example 2
+//-----------------------------------------------------------------------------
+clc;
+clear;
+// given data
+Pi = 10; // Input power in mW
+IL = 0.4; // insertion loss in dB
+// calculations
+// ILdb) = 10log(Pi/Po)
+Po = Pi/(10^(IL/10)) // antilog conversion and coupling power
+
+// Output
+mprintf('Power available at the straight through port output = %3.3f mW',Po);
+//------------------------------------------------------------------------------