From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 692/CH2/EX2.46/P2_46.sce | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 692/CH2/EX2.46/P2_46.sce (limited to '692/CH2/EX2.46') 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 =') -- cgit