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

---
 851/CH5/EX5.3/Example5_3.sce | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100755 851/CH5/EX5.3/Example5_3.sce

(limited to '851/CH5/EX5.3')

diff --git a/851/CH5/EX5.3/Example5_3.sce b/851/CH5/EX5.3/Example5_3.sce
new file mode 100755
index 000000000..ff326f5c2
--- /dev/null
+++ b/851/CH5/EX5.3/Example5_3.sce
@@ -0,0 +1,26 @@
+//clear//
+//Caption:Signal-to-Quantization Noise Ratio of PCM
+//Example5.3:Signal-to-Quantization noise ratio
+//Channel Bandwidth B
+clear;
+clc;
+n = input('Enter no. of bits used to encode:')
+W = input('Enter the message signal banwidth in Hz:')
+B = n*W;
+disp(B,'Channel width in Hz:')
+SNRo = 6*n - 7.2;
+disp(SNRo,'Output Signal to noise ratio in dB:')
+//Result 1 if  n = 8 bits
+//Enter no. of bits used to encode: 8
+//Enter the message signal banwidth in Hz: 4000
+//Channel width in Hz:  32000.  
+//Output Signal to noise ratio in dB: 40.8  
+///////////////////////////////////////////////
+//Result 2 if n = 9 bits
+//Enter no. of bits used to encode:9
+//Enter the message signal banwidth in Hz:4000
+//Channel width in Hz: 36000.  
+//Output Signal to noise ratio in dB: 46.8  
+//////////////////////////////////////////////
+//Conclusion: comparing result 1 with result 2 if number of bits increased by 1
+//corresponding output signal to noise in PCM increased by 6 dB.
-- 
cgit