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 --- 758/CH4/EX4.16/Ex_4_16.sce | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 758/CH4/EX4.16/Ex_4_16.sce (limited to '758/CH4/EX4.16/Ex_4_16.sce') diff --git a/758/CH4/EX4.16/Ex_4_16.sce b/758/CH4/EX4.16/Ex_4_16.sce new file mode 100755 index 000000000..a8832c8ae --- /dev/null +++ b/758/CH4/EX4.16/Ex_4_16.sce @@ -0,0 +1,16 @@ +//Example 4.16 + +clc;clear;close; +z=poly(0,'z'); +x1=[1 2 3 4];n1=0:length(x1)-1; +X1=x1*(z^-n1)'; +x2=[4 3 2 1];n2=0:length(x2)-1; +X2=x2*(z^-n2)'; +X2_=x2*(z^n2)'; +X3=X1*X2_; +l=coeff(numer(X3)); +x3=l(:,$:-1:1); +disp(X1,'x1(n)={4,-2,1} X1(z)='); +disp(X2,'x2(n)={4,-2,1} X2(z)='); +disp(X3,'Z transform of cross crrelation of the two signals X3(z)='); +disp(x3,'Cross correlation result of the two signals= ') -- cgit