%  Compute Z ztransform of n

syms n;  % make n symbolic variable
f = n;
ztrans(f)



%  Compute Z ztransform of n^2


f = n^2;
ztrans(f)


%  Compute Z ztransform of n^3


f = n^3;
ztrans(f)


%  Compute Z ztransform of n^4


f = n^4;
ztrans(f)


%  Compute Z ztransform of a^z

syms a z;
g = a^z;
ztrans(g)


%  Compute Z ztransform of sin(an)

syms  w;
f = sin(a*n);
ztrans(f, w)