summaryrefslogtreecommitdiff
path: root/1592/CH5/EX5.4
diff options
context:
space:
mode:
Diffstat (limited to '1592/CH5/EX5.4')
-rwxr-xr-x1592/CH5/EX5.4/Example5_4.sce33
-rwxr-xr-x1592/CH5/EX5.4/Fig5_4_1.jpgbin0 -> 6249 bytes
-rwxr-xr-x1592/CH5/EX5.4/Fig5_4_2.jpgbin0 -> 6261 bytes
3 files changed, 33 insertions, 0 deletions
diff --git a/1592/CH5/EX5.4/Example5_4.sce b/1592/CH5/EX5.4/Example5_4.sce
new file mode 100755
index 000000000..5fe0e1611
--- /dev/null
+++ b/1592/CH5/EX5.4/Example5_4.sce
@@ -0,0 +1,33 @@
+//Scilab Code for Example 5.4 of Signals and systems by
+//P.Ramakrishna Rao
+//Discrete Time Fourier Transform of
+// X(e^j*w)=2*%pi*delta(w)
+clear;
+clc;
+close;
+N = 1;
+N1 = -3*N:3*N;
+xn = [zeros(1,N-1),1];
+x = [1 xn xn xn xn xn xn];
+ak = 1/N;
+XW = 2*%pi*ak*ones(1,2*N);
+Wo = 2*%pi/N;
+n = -N:N-1;
+W = Wo*n;
+a = gca();
+a.y_location ="middle";
+a.x_location ="origin";
+plot2d3('gnn',W,XW,2);
+poly1 = a.children(1).children(1);
+poly1.thickness = 3;
+xlabel('W');
+title('DTFT of Periodic Impulse Train')
+figure(1);
+a = gca();
+a.y_location ="origin";
+a.x_location ="origin";
+plot2d3('gnn',N1,x,2);
+poly1 = a.children(1).children(1);
+poly1.thickness = 3;
+xlabel('n');
+title('Periodic Impulse Train x(n)')
diff --git a/1592/CH5/EX5.4/Fig5_4_1.jpg b/1592/CH5/EX5.4/Fig5_4_1.jpg
new file mode 100755
index 000000000..1b790e0d3
--- /dev/null
+++ b/1592/CH5/EX5.4/Fig5_4_1.jpg
Binary files differ
diff --git a/1592/CH5/EX5.4/Fig5_4_2.jpg b/1592/CH5/EX5.4/Fig5_4_2.jpg
new file mode 100755
index 000000000..2f8bcc20e
--- /dev/null
+++ b/1592/CH5/EX5.4/Fig5_4_2.jpg
Binary files differ