diff options
Diffstat (limited to '692/CH2/EX2.46')
-rwxr-xr-x | 692/CH2/EX2.46/P2_46.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/692/CH2/EX2.46/P2_46.sce b/692/CH2/EX2.46/P2_46.sce new file mode 100755 index 000000000..384771268 --- /dev/null +++ b/692/CH2/EX2.46/P2_46.sce @@ -0,0 +1,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 =') |