diff options
Diffstat (limited to '3446/CH21/EX21.4/Ex21_4.sce')
-rw-r--r-- | 3446/CH21/EX21.4/Ex21_4.sce | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/3446/CH21/EX21.4/Ex21_4.sce b/3446/CH21/EX21.4/Ex21_4.sce new file mode 100644 index 000000000..c0ee49c8d --- /dev/null +++ b/3446/CH21/EX21.4/Ex21_4.sce @@ -0,0 +1,23 @@ +//Exa 21.4
+// To determine the coverage of AP.
+
+clc;
+clear all;
+
+Eb_No=10; //in dB
+Noise=-120; //in dBm
+Pt=20; //in mwatt
+R=1; //Data rate in Mbps
+CHBW=0.5; //BW in MHz
+A=37.7; //path loss at the first meter in dB
+Y=3.3; //path loss exponent
+Lf=19; //function relating power loss with number of floors n (in dB)
+Ls=10; // lognormally distributed random variable representing the shadow effect in dB
+
+//solution
+S2Nreqd=Eb_No*R/CHBW;
+Rx_sensi=Noise+S2Nreqd;
+Lp=10*log10(20)-Rx_sensi;
+//Lp=A+10Ylod(d)+Lf+Ls;therefore
+d=10^((Lp-A-Lf-Ls)/(10*Y));
+printf('The coverage of AP is %.1f metres \n',d);
|