summaryrefslogtreecommitdiff
path: root/2409/CH9/EX9.5/Ex9_5.sce
blob: d056d5cf312a943e0020b5295a1ab5e41753b851 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

//Variable Declaration

n=24  //Number of channels
g=13.57  //Peak/rms factor(dB)
b=3.1  //Channel Bandwidth(kHz)
P=4     //Emphasis improvement (dB)
W=2.5   //Noise weighting improvement(dB)
CNR=25  //Carrier to noise ratio (dB)
delFrms=35  //rms value of Peak Deviation(kHz)
fm=108    //Baseband frequency (kHz)
//Calculation
 
L=10**((-1+4*log10(n))/20)
g=10**(g/20)  //Converting process gain to ratio
delF=g*delFrms*L  //Peak Deviation(Hz)
BIF=2*(delF+fm)   //Signal Bandwidth(kHz) by Carson's rule
Gp=(BIF/b)*((delFrms/fm)**2)  //Processing Gain
Gp=10*log10(Gp)  //Converting Gp to dB
SNR=CNR+Gp+P+W  //Signal to noise ratio for top channel in 24-channel FDM basseband signal

//Results
printf("Signal to noise ratio for top channel in 24-channel FDM Baseband signal is %.1f db", SNR)