diff options
Diffstat (limited to '1592/CH10/EX10.2')
-rwxr-xr-x | 1592/CH10/EX10.2/Fig10_2.jpg | bin | 0 -> 5700 bytes | |||
-rwxr-xr-x | 1592/CH10/EX10.2/example_10_2.sce | 17 |
2 files changed, 17 insertions, 0 deletions
diff --git a/1592/CH10/EX10.2/Fig10_2.jpg b/1592/CH10/EX10.2/Fig10_2.jpg Binary files differnew file mode 100755 index 000000000..cf0c6fb8c --- /dev/null +++ b/1592/CH10/EX10.2/Fig10_2.jpg diff --git a/1592/CH10/EX10.2/example_10_2.sce b/1592/CH10/EX10.2/example_10_2.sce new file mode 100755 index 000000000..995e86817 --- /dev/null +++ b/1592/CH10/EX10.2/example_10_2.sce @@ -0,0 +1,17 @@ +//Scilab Code for Example 10.2 of Signals and systems by
+//P.Ramakrishna Rao
+//Cross Correlation
+clear;
+clc;
+x=[4,-2,2,0,4];
+y=[0,3,0,-3,6];
+//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('rxy_cross-correlation');
|