diff options
Diffstat (limited to '1592/CH10/EX10.4/example_10_4.sce')
-rwxr-xr-x | 1592/CH10/EX10.4/example_10_4.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/1592/CH10/EX10.4/example_10_4.sce b/1592/CH10/EX10.4/example_10_4.sce new file mode 100755 index 000000000..1d3020318 --- /dev/null +++ b/1592/CH10/EX10.4/example_10_4.sce @@ -0,0 +1,14 @@ +//Scilab Code for Example 10.4 of Signals and systems by
+//P.Ramakrishna Rao
+//Auto Correlation
+clear;
+clc;
+x=[-1,1,-1];
+//computation of auto correlation sequence;
+r = xcorr(x);
+n=-2:2;
+a=gca();
+a.x_location="origin";
+a.y_location="origin";
+plot2d3(n,r,-9);
+title('rxx_auto-correlation');
|