summaryrefslogtreecommitdiff
path: root/3739/CH5/EX5.9/EX5_9.sce
blob: 1268d6c0f9f40a4131b8121ceac9c48e6d3065d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Chapter 5, Example 5.9, page 202
clc
//Initialisation
pr=-108.7                                   //received signal power in dB
fa=50                                       //noise tempreture
b=2700                                      //frequency in Hz
N=5                                         //noise figure in dB

//Calculation
snr=pr-fa-(10*log10(b))+204               //signal to noise ratio
snr1=snr-N

//Results
printf("Received signal to noise ratio = %.1f dB",snr)
printf("\nOutput signal to noise ratio = %.1f dB",snr1)