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

//given
r = 36000//bit rate of a channel
f_m = 3.2*10^3//maximum frequency

//calculations
f_s = 2*f_m//sampling frequency
v  = r/f_s//number of binary digits
q = 2^v//quantizing level

//results
printf("\n\ni.Sampling frequency  = %.2f Hz",f_s);
printf("\n\nii.Number of binary digits = %.2f ",v);
printf("\n\niii.Quantizing level = %.2f ",q);
printf("\n\nNote:In the textbook they took approximation in number of\n     binary levels")