Question: please help in matlab. Please show the scripts and function windows, thanks Problem 1) A rocket is launched vertically. After the rocket has reached 500

 please help in matlab. Please show the scripts and function windows,

please help in matlab. Please show the scripts and function windows, thanks

Problem 1) A rocket is launched vertically. After the rocket has reached 500 m, the rocket's engine shuts down. At that time (t = 0), the rocket is rising at a velocity of 125 m/s. Gravity takes over now and the height of the rocket as a function of timetis (1) - gt? + 125 + 500 Write a MATLAB function called hw3 p1 lastname height that accepts as input the time (seconds), and provides as output the height of the rocket(m). Problem 2) In a separate script called hw3 lastname, call your function from problem 1 and evaluate the height of the rocket after 2 minutes. Problem 3) Create a new function called hw3 p3 lastname height(that accepts both time and the acceleration of gravity as inputs. That is: h(t.g) = - t? +125t + 500 Problem 4) In your hw3 lastname script file, use the function from problem 3 to compare the height of the rocket after 2 minutes when it is launched from earth to the height when it is launched from the moon Problem 5) In your hw3 lastname script file, use the function from problem 3 to plot two rocket heights. The first curve should be the result of a rocket launched from the earth. The second curve should be launched from the moon. Create a legend which identifies the two curves and label the axes on your graph. The plot should show at least five minutes of flight time

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!