diff options
Diffstat (limited to '851/CH5/EX5.3')
-rwxr-xr-x | 851/CH5/EX5.3/Example5_3.sce | 26 |
1 files changed, 26 insertions, 0 deletions
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.
|