summaryrefslogtreecommitdiff
path: root/692/CH2/EX2.46/P2_46.sce
blob: 384771268f26890ce9df7fd7ace1cd487c14134e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//EXAMPLE 2.46, Cross corelation Computation.
// Given two finite length sequence.x[n],y[n]:
clear;
clc;
x=[1 3 -2 1 2 -1 4 4 2];
disp(x,'x');
y=[2 -1 4 1 -2 3];
disp(y,'y');
//Cross corelation rxy[n]:

rxy=convol(x,mtlb_fliplr(y));
disp(rxy,'The Cross-Corelation Operation of the Inputs is =')