diff options
Diffstat (limited to '1592/CH10/EX10.1/example_10_1.sce')
-rwxr-xr-x | 1592/CH10/EX10.1/example_10_1.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/1592/CH10/EX10.1/example_10_1.sce b/1592/CH10/EX10.1/example_10_1.sce new file mode 100755 index 000000000..6499a4867 --- /dev/null +++ b/1592/CH10/EX10.1/example_10_1.sce @@ -0,0 +1,17 @@ +//Scilab Code for Example 10.1 of Signals and systems by
+//P.Ramakrishna Rao
+//Cross Correlation
+clear;
+clc;
+x=[2,-1,1,0,2];
+y=[0,1,0,-1,2];
+//computation of cross correlation sequence;
+n1 = max(size(y))-1;
+n2 = max(size(x))-1;
+r = xcorr(x,y,n1);
+n=-4:4;
+a=gca();
+a.x_location="origin";
+a.y_location="origin";
+plot2d3(n,r,-9);
+title('Cross-Correlation seguence output');
|