summaryrefslogtreecommitdiff
path: root/3446/CH4/EX4.4
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3446/CH4/EX4.4
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3446/CH4/EX4.4')
-rw-r--r--3446/CH4/EX4.4/Ex4_4.sce25
1 files changed, 25 insertions, 0 deletions
diff --git a/3446/CH4/EX4.4/Ex4_4.sce b/3446/CH4/EX4.4/Ex4_4.sce
new file mode 100644
index 000000000..695e08417
--- /dev/null
+++ b/3446/CH4/EX4.4/Ex4_4.sce
@@ -0,0 +1,25 @@
+// Exa 4.4
+// TO calculate:
+// A)The minimum number of bits/sample or bits/PCM word that should be used.
+// B)The minimum sampling rate, and what is the resulting transmission rate.
+// C)The PCM pulse or symbol transmission rate.
+
+clc;
+clear all;
+
+Fm=3000; //highest modulating frequency in signal(Hz)
+M=32; // number of pulse levels
+b=5; //bits per symbol
+p=0.01; //Quantization distortion
+
+//solution
+//2^R = L >= 1/2P
+// where R is the number of bits required to represent quantization levels L
+R=log10(1/(2*p))/log10(2);
+Fs=2*Fm; // Nyquist sampling criteria (samples per second)
+fs=round(R)*Fs;
+Rs=fs/b;
+printf('The minimum number of bits/sample or bits/PCM word that should be used are %d',round(R));
+printf('\n The minimum sampling rate is %d samples per second\n ',Fs);
+printf('The resulting transmission rate is %d bps\n ',fs);
+printf('The PCM pulse or symbol transmission rate is %d symbols/sec\n',Rs);