Matlab tutorial for Z-domain analysis