2. A rocket is launched vertically. At time t=0, the rocket\'s engine shuts down
ID: 3592480 • Letter: 2
Question
2. A rocket is launched vertically. At time t=0, the rocket's engine shuts down. At that time, the rocket has reached an altitude of 500 m and is rising at a velocity of 125 m/s. Gravity has taken over. The height of the rocket as a function of time is 9.8 h(t) = t2 + 125t + 500 for t 0 (a) Create a function called height that accepts time as an input and returns (b) Plot height vs. time for times from O to 30 sec. Use an increment of 0.5 (c) Find the time when the rocket starts to fall back to the ground. (hint: The (d) Find the time at which the rocket hits the ground. (hint: the fzero the height of the rocket. Use your function in your solutions to parts b, c and d second in your time vector max function will be helpful in this exercise) function will be helpful in this exercise)Explanation / Answer
function height = h(t)
if t > 0
height = -4.9*t*t + 125*t + 500;
else
height = 500;
end
end
fun = @h;
t0 = 1;
t = fzero(fun, t0)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.