diff options
Diffstat (limited to '3446/CH21/EX21.1/EX21_1.sce')
-rw-r--r-- | 3446/CH21/EX21.1/EX21_1.sce | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/3446/CH21/EX21.1/EX21_1.sce b/3446/CH21/EX21.1/EX21_1.sce new file mode 100644 index 000000000..49c1f6531 --- /dev/null +++ b/3446/CH21/EX21.1/EX21_1.sce @@ -0,0 +1,26 @@ +// Exa 21.1
+// To find number of users that can be supported by the WLAN and the bandwidth efficiency.
+
+clc;
+clear all;
+
+Fl=902; //lower limit frequency MHz
+Fh=928; //higher limit frequency in MHz
+Rt=0.5; //symbol transmission rate in Mega symbols per sec
+S=16; //No of symbols
+BER=10^-5;//Bir error rate
+SG=2.6;//sector gain
+B=0.5; //Interference factor
+a=0.9; //power control efficiency
+
+//solution
+BW=Fh-Fl;
+Rb=Rt*log2(S);
+Gp=BW/Rb;
+// BER = 10^-5= 0.5*erfc(sqrt(Eb_No))
+deff('y=f(x)','y=0.5*erfc(sqrt(x))-10^-5')
+[x,v,info]=fsolve(0.1,f);//x=Eb_No
+M=Gp/x * 1/(1+B) * SG * a;
+printf('Number of users that can be supported by the WLAN are %d \n',M);
+eff=Rb*int(M)/BW;
+printf(' The bandwidth efficiency is %.2f bps/Hz \n',eff);
|