how to calculate inverse z transform in matlab code example Example: matlab inverse z transform syms z F = 2*z/(z-2)^2; iztrans(F)