summaryrefslogtreecommitdiff
path: root/67/CH7/EX7.56/example756.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /67/CH7/EX7.56/example756.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 '67/CH7/EX7.56/example756.sce')
-rwxr-xr-x67/CH7/EX7.56/example756.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/67/CH7/EX7.56/example756.sce b/67/CH7/EX7.56/example756.sce
new file mode 100755
index 000000000..37044533b
--- /dev/null
+++ b/67/CH7/EX7.56/example756.sce
@@ -0,0 +1,20 @@
+//Example 7.56
+//Determine the input x[n] if h[n]=[1,2,3]and y[n]=[1,1,2,-1,3]
+clc;
+clear;
+function[za]=ztransfer(sequence,n)
+ z=poly(0,'z','r')
+ za=sequence*(1/z)^n'
+endfunction
+z=poly(0,'z');
+h=[1,2,3];
+n1=0:length(h)-1;
+H=ztransfer(h,n1);
+y=[1,1,2,-1,3];
+n2=0:length(y)-1;
+Y=ztransfer(y,n2);
+X=Y/H;
+funcprot(0);
+funcprot(0);
+x=ldiv(1-z+z^2,z^2,3);
+disp(x,'x[n]='); \ No newline at end of file