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

PLEASE SOLVE IN MATLAB

PLEASE SOLVE IN MATLAB 3. ( 30 points) Two rockets are launched

3. ( 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 m/s, while the other rocket has reached an altitude of 750m and is rising at a velocity of 325 m/s. Gravity then takes over. The heights of the rockets as a function of time can be calculated from h(t)=29.8t2+(velocity)xt+altitudefort>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

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!