Question: ( 3 0 points ) Two rockets are launched vertically. At time t = 0 , the rockets' engines shut down. At that time, the

(30 points) Two rockets are launched vertically. At time t=0, the rockets' engines shut down.
At that time, the first rocket has reached an altitude of 300m and is rising at a velocity of 120
ms, while the other rocket has reached an altitude of 750m and is rising at a velocity of 325
ms. Gravity then takes over. The heights of the rockets as a function of time can be
calculated from
h(t)=-9.82t2+( velocity )xt+ altitude for t>0
Write a script M-file that performs the following.
a) Create a function handler (one for each rocket) that accepts time as an input and returns the
height of the rocket.
b) Using fplot, plot height versus time for times from 0 to 2min for both of the rockets on the
same plot. The first plot should be in magenta dashed lines, and the second plot should be in
blue dash-dotted lines, both with a line width of 1.5. Add a title, legend and labels to your
graph.
 (30 points) Two rockets are launched vertically. At time t=0, the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!