From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 1895/CH8/EX8.7/EXAMPLE8_7.SCE | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 1895/CH8/EX8.7/EXAMPLE8_7.SCE (limited to '1895/CH8/EX8.7') diff --git a/1895/CH8/EX8.7/EXAMPLE8_7.SCE b/1895/CH8/EX8.7/EXAMPLE8_7.SCE new file mode 100755 index 000000000..829a330ec --- /dev/null +++ b/1895/CH8/EX8.7/EXAMPLE8_7.SCE @@ -0,0 +1,22 @@ +//ANALOG AND DIGITAL COMMUNICATION +//BY Dr.SANJAY SHARMA +//CHAPTER 7 +//WAVEFORM CODING TECHNIQUES +clear all; +clc; +printf("EXAMPLE 8.7(PAGENO 390)"); + +//given +f_m = 3*10^3//maximum frequency +M = 16//number of quantization levels +q = M//number of quantization levels + +//calculations +v = log2(q);//number of bits +f_s = 2*f_m//sampling frequency or rate which is greater than or equal to obtained value +r = v*f_s//bit transmission rate which is greater than or equal to obtained value + +//results +printf("\n\ni.Number of bits in a codeword = %.2f bits",v); +printf("\n\nii.Minimum sampling rate = %.2f Hz ",f_s); +printf("\n\niii.Bit transmission rate =%.2f bits/sec",r); -- cgit