function h = height(v, t) g = 9.81 h = v*g - 0.5*g*t