summaryrefslogtreecommitdiff
path: root/3446/CH6/EX6.6/Ex6_6.sce
diff options
context:
space:
mode:
Diffstat (limited to '3446/CH6/EX6.6/Ex6_6.sce')
-rw-r--r--3446/CH6/EX6.6/Ex6_6.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/3446/CH6/EX6.6/Ex6_6.sce b/3446/CH6/EX6.6/Ex6_6.sce
new file mode 100644
index 000000000..2a311c759
--- /dev/null
+++ b/3446/CH6/EX6.6/Ex6_6.sce
@@ -0,0 +1,23 @@
+// Exa 6.6
+// To calculate capacity and spectral efficiency of the DS-CDMA system.
+
+clc;
+clear all;
+
+nb=0.9;//bandwidth efficiency
+nf=0.45;//frequency reuse efficiency
+Cd=0.8; //capacity degradation factor
+Vf=0.4;//voice activity factor
+Eb_I0=7; // desired energy-to-interference ratio in dB
+L=1;// efficiency of sector-antenna in cell
+BW=12.5;//One way system BW in MHz
+R=16.2;//Information rate in kbps
+
+//solution
+Eb_I=10^(Eb_I0*0.1);//To convert from dB to a normal value
+Nu=(nf*nb*Cd*L/Vf)*(BW*1000/(Eb_I*R));//Capacity of system
+Seff=round(Nu)*R/(12.5*10^3);
+printf('Capacity of system is %d mobile users per cell\n ',round(Nu));
+printf('Spectral efficiency of TDMA system is %.3f bits/sec/Hz\n',Seff);
+
+disp("In these calculations, an omnidirectional antenna is assumed. If a three sector antenna (i.e., G=3) is used at a cell site with lamda(efficiency of sector-antenna in a cell)= 2.6, the capacity will be increased to 325 mobile users per cell, and spectral efficiency will be 0.421 bits/sec/Hz.")