blob: cbc5615d2622b1930a198bb03665c487d7883f37 (
plain)
1
2
3
4
5
6
7
8
9
10
11
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);
|