summaryrefslogtreecommitdiff
path: root/3446/CH10/EX10.3/Ex10_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '3446/CH10/EX10.3/Ex10_3.sce')
-rw-r--r--3446/CH10/EX10.3/Ex10_3.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/3446/CH10/EX10.3/Ex10_3.sce b/3446/CH10/EX10.3/Ex10_3.sce
new file mode 100644
index 000000000..09648dbc4
--- /dev/null
+++ b/3446/CH10/EX10.3/Ex10_3.sce
@@ -0,0 +1,14 @@
+// Exa 10.3
+// To calculate gain of antenna.
+
+clc;
+clear all;
+
+Pin=12; //Input power in watts
+Ploss=3; //resistive losses in Watts
+D=5; //Directivity
+
+//solution
+Eff=(Pin-Ploss)/Pin;
+G=Eff*D;
+printf('Gain of the antenna is %.2f dB = %.2f \n',10*log10(G),G);