summaryrefslogtreecommitdiff
path: root/3788/CH5/EX5.2.2/Ex5_2_2.sce
blob: 1ce9fcd1897b72840de4281adb4c32a14d755047 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//Example 5.2.2
//Calculate the baseband SN ratio for the Voice channel

//Variables
clc
clear
Fmax = 3.4
Brf = 45
Rs = 9.6
P = 8.8
SNratio = 7
CNratio = 13

//result
delFpk = Brf/2 - Fmax
SNfm = CNratio + 10*log10(Brf/Fmax) + 20*log10(delFpk/Fmax) + 1.8 + P
printf("The baseband SN ratio for the voice channel is %f dB ",SNfm)