summaryrefslogtreecommitdiff
path: root/758/CH4/EX4.16/Ex_4_16.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /758/CH4/EX4.16/Ex_4_16.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '758/CH4/EX4.16/Ex_4_16.sce')
-rwxr-xr-x758/CH4/EX4.16/Ex_4_16.sce16
1 files changed, 16 insertions, 0 deletions
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= ')