summaryrefslogtreecommitdiff
path: root/1592/CH10/EX10.4/example_10_4.sce
blob: 1d30203184c80b795224a9c880f6b63b45a8d618 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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');