summaryrefslogtreecommitdiff
path: root/2414/CH1/EX1.9/Ex1_9.sce
diff options
context:
space:
mode:
Diffstat (limited to '2414/CH1/EX1.9/Ex1_9.sce')
-rwxr-xr-x2414/CH1/EX1.9/Ex1_9.sce26
1 files changed, 26 insertions, 0 deletions
diff --git a/2414/CH1/EX1.9/Ex1_9.sce b/2414/CH1/EX1.9/Ex1_9.sce
new file mode 100755
index 000000000..994a4a634
--- /dev/null
+++ b/2414/CH1/EX1.9/Ex1_9.sce
@@ -0,0 +1,26 @@
+clc;
+//page 13
+//ex-1.9
+
+G1=5000;
+L=2000;
+G2=400;
+Ps=0.1; //in mW
+P1=G1*Ps; //in mW
+disp('mW',P1,'(a) Power level P1 is:');
+P2=P1/L; //in mW
+disp('mW',P2,'Line output power P2:');
+Po=G2*P2; //in mW
+disp('mW',Po,'System output power Po:');
+PsdBm=10*log10(Ps/1);
+G1dB=10*log10(G1);
+LdB=10*log10(L);
+G2dB=10*log10(G2);
+disp('(b) Output power power levels in dBm are');
+P1dBm=PsdBm+G1dB;
+disp('dBm',P1dBm,'P1(dBm)=');
+P2dBm=P1dBm-LdB;
+disp('dBm',P2dBm,'P2(dBm)=');
+PodBm=P2dBm+G2dB;
+disp('dBm',PodBm,'Po(dBm)=');
+