diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1895/CH8/EX8.2 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1895/CH8/EX8.2')
-rwxr-xr-x | 1895/CH8/EX8.2/EXAMPLE8_2.SCE | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/1895/CH8/EX8.2/EXAMPLE8_2.SCE b/1895/CH8/EX8.2/EXAMPLE8_2.SCE new file mode 100755 index 000000000..02a910088 --- /dev/null +++ b/1895/CH8/EX8.2/EXAMPLE8_2.SCE @@ -0,0 +1,27 @@ +//ANALOG AND DIGITAL COMMUNICATION
+//BY Dr.SANJAY SHARMA
+//CHAPTER 7
+//WAVEFORM CODING TECHNIQUES
+clear all;
+clc;
+printf("EXAMPLE 8.2(PAGENO 386)");
+
+//given
+f_m = 4.2*10^6//bandwidth of television signal
+q = 512//quantization levels
+
+//calculations
+//number of bits and quantization levels are related in binary PCM as q = 2^v
+//where v is code word length
+v = (log10(q)/log10(2));//code word length
+BW = v*f_m//transmission channel bandwidth which is greater than or equal to obtained value
+f_s = 2*f_m//sampling frequency which is greater than or equal to obtained value
+r = v*f_s//signaling rate of final bit rate
+SbyN_dB = 4.8 + 6*v//output signal to noise ratio which is less than or equal to obtained value
+
+//results
+printf("\n\ni. Code word length = %.2f bits",v);
+printf("\n\nii. Transmission bandwidth = %.2f Hz",BW);
+printf("\n\niii.Final bit rate = %.2f bits/sec",r);
+printf("\n\niv.Output signal to quantization noise ratio = %.2f dB",SbyN_dB);
+printf("\n\nNote:There is misprint in the question i.e TV signal bandwidth ")
|