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