summaryrefslogtreecommitdiff
path: root/116/CH3/EX3.1/exa3_1.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:38:01 +0530
committerprashantsinalkar2017-10-10 12:38:01 +0530
commitf35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch)
treeeb72842d800ac1233e9d890e020eac5fd41b0b1b /116/CH3/EX3.1/exa3_1.sce
parent7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff)
downloadScilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip
updated the code
Diffstat (limited to '116/CH3/EX3.1/exa3_1.sce')
-rwxr-xr-x116/CH3/EX3.1/exa3_1.sce36
1 files changed, 18 insertions, 18 deletions
diff --git a/116/CH3/EX3.1/exa3_1.sce b/116/CH3/EX3.1/exa3_1.sce
index 6dafadd7c..e2f8746de 100755
--- a/116/CH3/EX3.1/exa3_1.sce
+++ b/116/CH3/EX3.1/exa3_1.sce
@@ -1,19 +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
-
+
+
+//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