Z-transform in Matlab
www.cpp.edu › ~zaliyazici › ece3081 Z-Transform in Matlab Z-transform is defined as 0 ()()n n Xzxnz or X(z)=Z[xn()] The inverse z-transform is denoted by x(n)=Z−1[Xz()] MatLab Symbolic Toolbox gives the z-transform of a function Example: 1 ()() 4n xn= un 2 () 21 z Xz z >> syms z n >> ztrans(1/4^n) ans = 4*z/(4*z-1) >> syms z n >> iztrans(2*z/(2*z -1)) ans = (1/2)^n
Z-transform - MATLAB ztrans
www.mathworks.com › help › symbolicCompute the Z-transform of exp (m+n). By default, the independent variable is n and the transformation variable is z. syms m n f = exp (m+n); ztrans (f) ans = (z*exp (m))/ (z - exp (1)) Specify the transformation variable as y. If you specify only one variable, that variable is the transformation variable. The independent variable is still n.