summaryrefslogtreecommitdiff
path: root/3446/CH6/EX6.6/Ex6_6.sce
blob: 2a311c759e3d97c0659933b6bb7e99e87e125cc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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.")