summaryrefslogtreecommitdiff
path: root/2409/CH9/EX9.4/Ex9_4.sce
blob: 58019fe97387ae8bf887e20d914de31ee281deea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

//Variable Declaration

delf=5 //Deviation frequency (kHz)
Bs=1   //Test Tone Frequency (kHz)
CNR=30  //Carrier to noise ration(dB)

//Calculation
m=delf/Bs  //Modulation Index
Gp=3*(m**2)*(m+1)  //Processing gain for sinusoidal modulation
Gp=10*log10(Gp) //Converting Gp into dB
SNR=CNR+Gp

//Results
printf("The receiver processing gain is %.1f dB",Gp)
printf("\nThe Signal to noise ratio is %.1f dB",SNR)