Hi there! Doing a little final practice and was asked to find the max height and the time of the max height of the rocket. I can't figure out the code for the time.
function rocketg=9.81;vi=50;yi=0;theta=(pi/3);t=0:0.1:12;x=vi*cos(theta)*t;y=yi+vi*sin(theta)*t-((1/2)*g*(t.^2));plot(t,y)Maxheight=max([y(:)])end
Best Answer