summaryrefslogtreecommitdiff
path: root/116/CH3/EX3.1
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /116/CH3/EX3.1
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '116/CH3/EX3.1')
-rwxr-xr-x116/CH3/EX3.1/exa3_1.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/116/CH3/EX3.1/exa3_1.sce b/116/CH3/EX3.1/exa3_1.sce
new file mode 100755
index 000000000..6dafadd7c
--- /dev/null
+++ b/116/CH3/EX3.1/exa3_1.sce
@@ -0,0 +1,19 @@
+//Caption:Program to calculate quantization interval and bits needed to encode each sample
+
+//Example 3.1
+
+//Page 101
+
+sqr=30//SQR=30dB
+
+q=1*10^[-(sqr-7.78)/20]
+
+disp('Thus 13 quantization intervals arer needed for each polarity for a total of 26 intervals in all. The number of bitz required are determined as')
+
+N=log2(26)
+
+//Result
+
+//q = 0.078 V
+
+//N = 4.7 = 5 bits per sample \ No newline at end of file