Find the Z transform for the unit step discrete function
Given the unit step function
defined as
for
, find its Z transform.
| Mathematica | Matlab |
Remove["Global`*"]; ZTransform[UnitStep[n],n,z] Out[] = z/(-1+z) |
syms n
pretty(ztrans(heaviside(n)))
1
----- + 1/2
z - 1
|
Find the Z transform for
| Mathematica | Matlab |
f[n_]:=((1/3)^n+(9/10)^(n-3))UnitStep[n]; ZTransform[f[n],n,z] Out[18]= z (3/(-1+3 z)+10000/(729 (-9+10 z))) |
syms n
pretty(ztrans( ( (1/3)^n + (0.9)^(n-3) ) * heaviside(n) ) )
100 1
------------- + ------- + 1729/1458
81 (z - 9/10) 3 z - 1
|