Question: MATLAB help please Create a FUNCTION file called height.m, and a script file called heightPlotter.m, and solve the following inside them: 6.7 A rocket is

 MATLAB help please Create a FUNCTION file called height.m, and a MATLAB help please

Create a FUNCTION file called height.m, and a script file called heightPlotter.m, and solve the following inside them: 6.7 A rocket is launched vertically. At time 1 = 0, the rocket's engine shuts down. At that time, the rocket has reached an altitude of 500 m and is rising at a velocity of 125 m/s. Gravity then takes over. The height of the rocket as a function of time is 9.8 h(1) - 2 + 125 + 500 for 1 > 0 2 (a) Create a function called height that accepts time as an input and returns the height of the rocket. Use your function in your solutions to parts b and c. (b) Plot height versus time for times from 0 to 30 seconds. Use an incre- ment of 0,5 second in your time vector. (c) Find the time when the rocket starts to fall back to the ground. (The max function will be helpful in this exercise.) Copy/paste your result for time of peak height into your height Plotter file Save your plot as heightPlot.jpg (time on the x-axis, height on y-axis)

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!