diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2409/CH14/EX14.8 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2409/CH14/EX14.8')
-rwxr-xr-x | 2409/CH14/EX14.8/Ex14_8.sce | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/2409/CH14/EX14.8/Ex14_8.sce b/2409/CH14/EX14.8/Ex14_8.sce new file mode 100755 index 000000000..44a7f31a3 --- /dev/null +++ b/2409/CH14/EX14.8/Ex14_8.sce @@ -0,0 +1,21 @@ + +//Variable Declaration + +BIF=36 //Bandwidth of channel over which carriers are spread(MHz) +R=0.4 //Rolloff factor for filtering +Rb=64 //Information bit rate(kb/s) +BER=10**-5 //Bit error rate required +EbN0R=9.6 //Eb/N0 ratio for BER given from Fig.10.18 + +//Calculation + +Rch=BIF*10**6/(1+R) //Rate of unspreaded signal(chips/s) +Gp=Rch/(Rb*10**3) //Processing gain +Gp1=round(10*log10(Gp)) //Processing gain(dB) +EbN0R1=10**(EbN0R/(10)) //Converting Eb/N0 into ratio +K=1+(1.4*Gp/EbN0R1) //Number of channels +K=floor(K) + +//Result +printf("The Processing Gain is %.f dB",Gp1) +printf("An estimate of maximum number of channels that can access the system is %.f",K) |