Question: Q . 2 ( HW# 7 ) A rocket is launched vertically. At time = 0 , when the rocket's engine shuts down, the rocket
QHW#
A rocket is launched vertically. At time when the rocket's engine shuts down, the rocket has reached an altitude of and is moving with a velocity of The height the rocket as function of time is:
a Use input command to prompt the user to enter the following parameters: and
b Create a MATLAB function called 'rocket' to calculate the height of the rocket and plot the height versus time from to with an increment of
c Use the ginput command to find the time when the rocket starts to fall back to the ground and the time when it hits the ground. Use disp and fprintf commands to display the results as follow: "the rocket starts to fall back at dots ; "the rocket hits the ground at dots
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
