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.13/EXAMPLE8_13.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.13/EXAMPLE8_13.SCE')
-rwxr-xr-x | 1895/CH8/EX8.13/EXAMPLE8_13.SCE | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/1895/CH8/EX8.13/EXAMPLE8_13.SCE b/1895/CH8/EX8.13/EXAMPLE8_13.SCE new file mode 100755 index 000000000..275950d16 --- /dev/null +++ b/1895/CH8/EX8.13/EXAMPLE8_13.SCE @@ -0,0 +1,22 @@ +//ANALOG AND DIGITAL COMMUNICATION
+//BY Dr.SANJAY SHARMA
+//CHAPTER 7
+//WAVEFORM CODING TECHNIQUES
+clear all;
+clc;
+printf("EXAMPLE 8.13(PAGENO 404)");
+
+//given
+f_m = 3*10^3//bandwidth or maximum frequency
+n = 5//system operation times
+delta = 250*10^-3//step size in volts
+f_m1 = 2*10^3//given maximum frequency to calculate amplitude
+
+//calculations
+NR = 2 * f_m//nyquist rate
+f_s = n * NR//sampling frequency
+T_s = 1/f_s//sampling interval
+A_m =(delta/(2 * %pi * f_m1* T_s))//Maximum amplitude
+
+//result
+printf("\n\nMaximum amplitude for 2KHz input sinusoid = %.2f V",A_m);
|