summaryrefslogtreecommitdiff
path: root/1895/CH8/EX8.13/EXAMPLE8_13.SCE
diff options
context:
space:
mode:
Diffstat (limited to '1895/CH8/EX8.13/EXAMPLE8_13.SCE')
-rwxr-xr-x1895/CH8/EX8.13/EXAMPLE8_13.SCE22
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);