From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2409/CH14/EX14.8/Ex14_8.sce | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 2409/CH14/EX14.8/Ex14_8.sce (limited to '2409/CH14/EX14.8') 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) -- cgit