diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1895/CH8/EX8.8/EXAMPLE8_8.SCE | |
download | Scilab-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.8/EXAMPLE8_8.SCE')
-rwxr-xr-x | 1895/CH8/EX8.8/EXAMPLE8_8.SCE | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/1895/CH8/EX8.8/EXAMPLE8_8.SCE b/1895/CH8/EX8.8/EXAMPLE8_8.SCE new file mode 100755 index 000000000..c6d5afbe0 --- /dev/null +++ b/1895/CH8/EX8.8/EXAMPLE8_8.SCE @@ -0,0 +1,25 @@ +//ANALOG AND DIGITAL COMMUNICATION
+//BY Dr.SANJAY SHARMA
+//CHAPTER 7
+//WAVEFORM CODING TECHNIQUES
+clear all;
+clc;
+printf("EXAMPLE 8.8(PAGENO 391)");
+
+//given
+f_m = 3.5*10^3//maximum frequency
+r = 50*10^3//bit rate
+v_rms = .2//rms value of input signal
+R = 1//resistance
+x_max = 2//maximum peak voltage
+
+//calculations
+f_s = 2*f_m;//sampling frequency
+v = r/f_s;//number of bits
+P = v_rms^2 / R//Normalized signal power
+SbyN = ((3*P) * 2^(2*v)) /(x_max^2);//signal to noise ratio
+SbyN_dB = 10*log10(SbyN)//signal to noise ratio in dB
+
+//results
+printf("\n\ni.Signal to noise ratio in dB = %.2f dB",SbyN_dB);
+printf("\n\nNote: They took number of bits as approximation from 7.142 to 8 so the SbyN changes ")
|