summaryrefslogtreecommitdiff
path: root/1895/CH8/EX8.10/EXAMPLE8_10.SCE
blob: c180cd95f9c37eee48e42a29e74cf23582d3ba83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//ANALOG AND DIGITAL COMMUNICATION
//BY Dr.SANJAY SHARMA
//CHAPTER 7
//WAVEFORM CODING TECHNIQUES
clear all;
clc;
printf("EXAMPLE 8.10(PAGENO 392)");

//given
//x(t) = 3*cos(500*%pi*t)
v = 10//number of bits
A_m = 3//peak voltage
SbyN_2 = 40//signal to noise to noise ratio in second condition

//calculations
SbyN = 1.8 +6*v//signal to noise ratio in dB
v_2 = (40 - 1.8)/6//number of bits needed for SbyN = 40

//results
printf("\n\ni.Signal to noise to ratio in dB = %.2f dB",SbyN);
printf("\n\nii.Number of bits needed for noise ratio 40 = %.2f bits",v_2);