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 /830/CH2/EX2.1.2 | |
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 '830/CH2/EX2.1.2')
-rwxr-xr-x | 830/CH2/EX2.1.2/Transformation_in_Time1.sce | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/830/CH2/EX2.1.2/Transformation_in_Time1.sce b/830/CH2/EX2.1.2/Transformation_in_Time1.sce new file mode 100755 index 000000000..99501a0a5 --- /dev/null +++ b/830/CH2/EX2.1.2/Transformation_in_Time1.sce @@ -0,0 +1,45 @@ +//Graphical//
+//Implementation of Eample 2.1.2 in Chapter 2
+//Digital Signal Processing by Proakis, Third Edition, PHI
+//Page 52
+
+
+clear;
+clc;
+close;
+
+x = [0 0 0 -1 0 1 2 3 4 5 5 5 5 5];
+
+x1 = [0 0 0 x]; //x(n-3)
+
+x2 =[x 0 0]; //x(n+2)
+
+
+a=gca();
+a.thickness = 2;
+a.y_location = "middle";
+a.x_location = "middle"
+
+subplot(3,1,1)
+a=gca();
+a.thickness = 2;
+a.y_location = "middle";
+a.x_location = "middle"
+plot2d3('gnn',1:length(x),x)
+xtitle('Graphical Representation of signal x',' ---> n',' --->x[n]');
+
+subplot(3,1,2)
+a=gca();
+a.thickness = 2;
+a.y_location = "middle";
+a.x_location = "middle"
+plot2d3('gnn',x1)
+xtitle('Graphical Representation of signal delayed version of x',' ---> n',' --->x[n-3]');
+
+subplot(3,1,3)
+a=gca();
+a.thickness = 2;
+a.y_location = "middle";
+a.x_location = "middle"
+plot2d3('gnn',x2)
+xtitle('Graphical Representation of signal advanced version of x',' ---> n',' --->x[n+2]');
|