summaryrefslogtreecommitdiff
path: root/3812/CH10/EX10.12.c/10_12c.sce
diff options
context:
space:
mode:
Diffstat (limited to '3812/CH10/EX10.12.c/10_12c.sce')
-rw-r--r--3812/CH10/EX10.12.c/10_12c.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/3812/CH10/EX10.12.c/10_12c.sce b/3812/CH10/EX10.12.c/10_12c.sce
new file mode 100644
index 000000000..cbc5615d2
--- /dev/null
+++ b/3812/CH10/EX10.12.c/10_12c.sce
@@ -0,0 +1,12 @@
+//example 10.12(c):
+//Find Z transform
+clc;
+function[za]=ztransfer(sequence,n)
+z=poly(0,'z','r')
+za=sequence*(1/z)^n'
+endfunction
+x=[0,0,1,2,6,-2,3];
+n1=0:length(x)-1;
+X=ztransfer(x,n1);
+disp(X,'X(z)=');
+funcprot(0);