summaryrefslogtreecommitdiff
path: root/3788/CH5/EX5.2.1/Ex5_2_1.sce
blob: 430068de79515ddd218dc5c08c2c78b2e11cca76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//Example
//Calculate the baseband SN ratio for the video signal
//Variables
clc
clear
Fmax = 4.2
RFbw = 30
CNratio = 15
P = 9
Q = 8

//Result
delFpk = (RFbw/2) - Fmax
Brf = 2*(delFpk + Fmax)
SN = CNratio + 10*log10(RFbw/Fmax) + 20*log10(delFpk/Fmax)+ 1.5 +P + Q
printf("The baseband SN ratio for the video signal is %f",SN)