Question: A rocket is launched vertically. At time t = 0, the rockets engine shuts down. At that time, the rocket has reached an altitude of
A rocket is launched vertically. At time t = 0, the rockets engine shuts down. At that time, the rocket has reached an altitude of 500 meters and is rising at a velocity of 125 meters/second. Gravity then takes over. The height of the rocket as a function of time is:
h(t) = -9.8t^2 + 125t + 500 for t > 0 where h(t) is height in meters and t is time in seconds
A) Create a matlab function called rocket_height that accepts time as an argument and returns the height of the rocket. This function does not need to validate that time is greater than 0.
B) Create a matlab script that - plots height versus time for 0, by 0.1 seconds, until the rocket hits the ground - finds the time when the rocket starts to fall back to the ground (Use the max function) - Use fprintf to print out the maximum height and time when the maximum height occurs (don't forget units)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
