summaryrefslogtreecommitdiff
path: root/1895/CH8/EX8.14
diff options
context:
space:
mode:
Diffstat (limited to '1895/CH8/EX8.14')
-rwxr-xr-x1895/CH8/EX8.14/EXAMPLE8_14.SCE19
1 files changed, 19 insertions, 0 deletions
diff --git a/1895/CH8/EX8.14/EXAMPLE8_14.SCE b/1895/CH8/EX8.14/EXAMPLE8_14.SCE
new file mode 100755
index 000000000..19606fd29
--- /dev/null
+++ b/1895/CH8/EX8.14/EXAMPLE8_14.SCE
@@ -0,0 +1,19 @@
+//ANALOG AND DIGITAL COMMUNICATION
+//BY Dr.SANJAY SHARMA
+//CHAPTER 7
+//WAVEFORM CODING TECHNIQUES
+clear all;
+clc;
+printf("EXAMPLE 8.14(PAGENO 406)");
+
+//given
+f_s = 8*10^3//sampling rate
+q = 64//quantization levels
+delta = 31.25//step size
+
+//calculations
+v = log2(q);//no fo bits in the PC
+f_s= (2*%pi*3*10^3)/delta//signalling rate which should be greater than the obtaining value
+
+//results
+printf("\n\nSignalling rate = %.2f Hz",f_s);