function p = calc_limits(p) p.x_min = 0; p.y_min = 0; p.x_max = projectile_motion(p, p.t_max); p.max_time = (p.velocity * sind(p.theta_0) / 9.8); [dump, p.y_max] = projectile_motion(p, p.max_time); end