Compute the Z-transform of
sin(n)
. By default, the transform is in terms of z
.Specify Independent Variable and Transformation Variable
Compute the Z-transform of
exp(m+n)
. By default, the independent variable is n
and the transformation variable is z
.Iztrans( F ) returns the Inverse Z-Transform of F. By default, the independent variable is z and the transformation variable is n. If F does not contain z, iztrans uses the function symvar. Iztrans( F, transVar ) uses the transformation variable transVar instead of n. You are using syms function to create the functions x(n) and X(z). When you go through the documentation of syms function, you can find that you are just creating symbols for the functions, but not defining or assigning them to any symbolic expressions. This might be the reason why you are not getting the expected result.
Specify the transformation variable as
y
. If you specify only one variable, that variable is the transformation variable. The independent variable is still n
.Specify both the independent and transformation variables as
m
and y
in the second and third arguments, respectively.Z-Transforms Involving Heaviside Function and Binomial Coefficient
Compute the Z-transform of the Heaviside function and the binomial coefficient.
Find the Z-transform of the matrix
M
. Specify the independent and transformation variables for each matrix entry by using matrices of the same size. When the arguments are nonscalars, ztrans
acts on them element-wise.If
ztrans
is called with both scalar and nonscalar arguments, then it expands the scalars to match the nonscalars by using scalar expansion. Nonscalar arguments must be the same size.Compute the Z-transform of symbolic functions. When the first argument contains symbolic functions, then the second argument must be a scalar.
If
ztrans
cannot transform the input then it returns an unevaluated call.Return the original expression by using
iztrans
.