summaryrefslogtreecommitdiff
path: root/830/CH3/EX3.2.9/Convolution_Property.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:38:01 +0530
committerprashantsinalkar2017-10-10 12:38:01 +0530
commitf35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch)
treeeb72842d800ac1233e9d890e020eac5fd41b0b1b /830/CH3/EX3.2.9/Convolution_Property.sce
parent7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff)
downloadScilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip
updated the code
Diffstat (limited to '830/CH3/EX3.2.9/Convolution_Property.sce')
-rwxr-xr-x830/CH3/EX3.2.9/Convolution_Property.sce29
1 files changed, 16 insertions, 13 deletions
diff --git a/830/CH3/EX3.2.9/Convolution_Property.sce b/830/CH3/EX3.2.9/Convolution_Property.sce
index 00a1328e2..7b2dfedc4 100755
--- a/830/CH3/EX3.2.9/Convolution_Property.sce
+++ b/830/CH3/EX3.2.9/Convolution_Property.sce
@@ -1,13 +1,16 @@
-//Graphical//
-//Example 3.2.9
-//Convolution Property Proof
-clear;
-clc;
-close;
-x1 = [1,-2,1];
-n1 = 0:length(x1)-1;
-X1 = ztransfer_new(x1,n1)
-x2 = [1,1,1,1,1,1];
-n2 = 0:length(x2)-1;
-X2 = ztransfer_new(x2,n2)
-X = X1.*X2
+//Graphical//
+//Example 3.2.9
+//Convolution Property Proof
+clear;
+clc;
+close;
+function [Ztransfer]= ztransfer_new (sequence,n)
+ z = poly (0, 'z' , 'r' ); Ztransfer = sequence *(1/z )^n'
+endfunction
+x1 = [1,-2,1];
+n1 = 0:length(x1)-1;
+X1 = ztransfer_new(x1,n1)
+x2 = [1,1,1,1,1,1];
+n2 = 0:length(x2)-1;
+X2 = ztransfer_new(x2,n2)
+X = X1.*X2 \ No newline at end of file