Update and rename compute_z to compute_z.m