summaryrefslogtreecommitdiff
path: root/1895/CH8/EX8.10
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1895/CH8/EX8.10
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 '1895/CH8/EX8.10')
-rwxr-xr-x1895/CH8/EX8.10/EXAMPLE8_10.SCE21
1 files changed, 21 insertions, 0 deletions
diff --git a/1895/CH8/EX8.10/EXAMPLE8_10.SCE b/1895/CH8/EX8.10/EXAMPLE8_10.SCE
new file mode 100755
index 000000000..c180cd95f
--- /dev/null
+++ b/1895/CH8/EX8.10/EXAMPLE8_10.SCE
@@ -0,0 +1,21 @@
+//ANALOG AND DIGITAL COMMUNICATION
+//BY Dr.SANJAY SHARMA
+//CHAPTER 7
+//WAVEFORM CODING TECHNIQUES
+clear all;
+clc;
+printf("EXAMPLE 8.10(PAGENO 392)");
+
+//given
+//x(t) = 3*cos(500*%pi*t)
+v = 10//number of bits
+A_m = 3//peak voltage
+SbyN_2 = 40//signal to noise to noise ratio in second condition
+
+//calculations
+SbyN = 1.8 +6*v//signal to noise ratio in dB
+v_2 = (40 - 1.8)/6//number of bits needed for SbyN = 40
+
+//results
+printf("\n\ni.Signal to noise to ratio in dB = %.2f dB",SbyN);
+printf("\n\nii.Number of bits needed for noise ratio 40 = %.2f bits",v_2);