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 | |
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')
-rwxr-xr-x | 830/CH2/EX2.01.09/Exp_Inc.sce | 17 | ||||
-rwxr-xr-x | 830/CH2/EX2.1.09/Exp_Dec.sce | 16 | ||||
-rwxr-xr-x | 830/CH2/EX2.1.2/Transformation_in_Time1.sce | 45 | ||||
-rwxr-xr-x | 830/CH2/EX2.1.24/even.sce | 14 | ||||
-rwxr-xr-x | 830/CH2/EX2.1.25/odd.sce | 16 | ||||
-rwxr-xr-x | 830/CH2/EX2.1.6/sample.sce | 14 | ||||
-rwxr-xr-x | 830/CH2/EX2.1.7/step.sce | 14 | ||||
-rwxr-xr-x | 830/CH2/EX2.1.8/ramp.sce | 14 | ||||
-rwxr-xr-x | 830/CH2/EX2.1.9/Exp.sce | 14 |
9 files changed, 164 insertions, 0 deletions
diff --git a/830/CH2/EX2.01.09/Exp_Inc.sce b/830/CH2/EX2.01.09/Exp_Inc.sce new file mode 100755 index 000000000..93c60d13f --- /dev/null +++ b/830/CH2/EX2.01.09/Exp_Inc.sce @@ -0,0 +1,17 @@ +//Graphical//
+//Implementation of Equation 2.01.09b in Chapter 2
+//Digital Signal Processing by Proakis, Third Edition, PHI
+//Page 46
+// a < 0
+clear;
+clc;
+close;
+a =-1.5;
+n = 0:10;
+x = (a)^n;
+a=gca();
+a.thickness = 2;
+a.x_location = "origin";
+a.y_location = "origin";
+plot2d3('gnn',n,x)
+xtitle('Graphical Representation of Exponential Increasing-Decreasing Signal','n','x[n]');
diff --git a/830/CH2/EX2.1.09/Exp_Dec.sce b/830/CH2/EX2.1.09/Exp_Dec.sce new file mode 100755 index 000000000..f84a9583b --- /dev/null +++ b/830/CH2/EX2.1.09/Exp_Dec.sce @@ -0,0 +1,16 @@ +//Graphical//
+//Implementation of Equation 2.1.09c in Chapter 2
+//Digital Signal Processing by Proakis, Third Edition, PHI
+//Page 46
+// a < 1
+clear;
+clc;
+close;
+a =0.5;
+n = 0:10;
+x = (a)^n;
+a=gca();
+a.thickness = 2;
+a.x_location = "middle";
+plot2d3('gnn',n,x)
+xtitle('Graphical Representation of Exponential Decreasing Signal','n','x[n]');
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]');
diff --git a/830/CH2/EX2.1.24/even.sce b/830/CH2/EX2.1.24/even.sce new file mode 100755 index 000000000..081bb1533 --- /dev/null +++ b/830/CH2/EX2.1.24/even.sce @@ -0,0 +1,14 @@ +//Graphical//
+//Implementation of Equation 2.1.24 in Chapter 2
+//Digital Signal Processing by Proakis, Third Edition, PHI
+//Page 51
+
+clear; clc; close;
+n = -7:7;
+x1 = [0 0 0 1 2 3 4];
+x = [x1,5,x1(length(x1):-1:1)];
+a=gca();
+a.thickness = 2;
+a.y_location = "middle";
+plot2d3('gnn',n,x)
+xtitle('Graphical Representation of Even Signal','n','x[n]');
diff --git a/830/CH2/EX2.1.25/odd.sce b/830/CH2/EX2.1.25/odd.sce new file mode 100755 index 000000000..733d9c606 --- /dev/null +++ b/830/CH2/EX2.1.25/odd.sce @@ -0,0 +1,16 @@ +//Graphical//
+//Implementation of Equation 2.1.25 in Chapter 2
+//Digital Signal Processing by Proakis, Third Edition, PHI
+//Page 51
+clear;
+clc;
+close;
+n = -5:5;
+x1 = [0 1 2 3 4 5];
+x = [-x1($:-1:2),x1];
+a=gca();
+a.thickness = 2;
+a.y_location = "middle";
+a.x_location = "middle"
+plot2d3('gnn',n,x)
+xtitle('Graphical Representation of ODD Signal',' n',' x[n]');
diff --git a/830/CH2/EX2.1.6/sample.sce b/830/CH2/EX2.1.6/sample.sce new file mode 100755 index 000000000..2aed758d8 --- /dev/null +++ b/830/CH2/EX2.1.6/sample.sce @@ -0,0 +1,14 @@ +//Graphical//
+//Implementation of Equation 2.1.6 in Chapter 2
+//Digital Signal Processing by Proakis, Third Edition, PHI
+//Page 45
+
+clear; clc; close;
+L = 4; //Upperlimit
+n = -L:L;
+x = [zeros(1,L),1,zeros(1,L)];
+a=gca();
+a.thickness = 2;
+a.y_location = "middle";
+plot2d3('gnn',n,x)
+xtitle('Graphical Representation of Unit Sample Sequence','n','x[n]');
diff --git a/830/CH2/EX2.1.7/step.sce b/830/CH2/EX2.1.7/step.sce new file mode 100755 index 000000000..e3426b8df --- /dev/null +++ b/830/CH2/EX2.1.7/step.sce @@ -0,0 +1,14 @@ +//Graphical//
+//Implementation of Equation 2.1.7 in Chapter 2
+//Digital Signal Processing by Proakis, Third Edition, PHI
+//Page 45
+
+clear; clc; close;
+L = 4; //Upperlimit
+n = -L:L;
+x = [zeros(1,L),ones(1,L+1)];
+a=gca();
+a.thickness = 2;
+a.y_location = "middle";
+plot2d3('gnn',n,x)
+xtitle('Graphical Representation of Unit Step Signal','n','x[n]');
diff --git a/830/CH2/EX2.1.8/ramp.sce b/830/CH2/EX2.1.8/ramp.sce new file mode 100755 index 000000000..559330533 --- /dev/null +++ b/830/CH2/EX2.1.8/ramp.sce @@ -0,0 +1,14 @@ +//Graphical//
+//Implementation of Equation 2.1.8 in Chapter 2
+//Digital Signal Processing by Proakis, Third Edition, PHI
+//Page 45
+
+clear; clc; close;
+L = 4; //Upperlimit
+n = -L:L;
+x = [zeros(1,L),0:L];
+a=gca();
+a.thickness = 2;
+a.y_location = "middle";
+plot2d3('gnn',n,x)
+xtitle('Graphical Representation of Unit Ramp Signal','n','x[n]');
diff --git a/830/CH2/EX2.1.9/Exp.sce b/830/CH2/EX2.1.9/Exp.sce new file mode 100755 index 000000000..86473466c --- /dev/null +++ b/830/CH2/EX2.1.9/Exp.sce @@ -0,0 +1,14 @@ +//Graphical//
+//Implementation of Equation 2.1.9 in Chapter 2
+//Digital Signal Processing by Proakis, Third Edition, PHI
+//Page 46
+clear;
+clc;
+close;
+a =1.5;
+n =1:10;
+x = (a)^n;
+a=gca();
+a.thickness = 2;
+plot2d3('gnn',n,x)
+xtitle('Graphical Representation of Exponential Signal','n','x[n]');
|