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 /851/CH5/EX5.3/Example5_3.sce | |
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 '851/CH5/EX5.3/Example5_3.sce')
-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.
|