Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

mathlab solution 4)1 The height of a rocket (in meters) can be represented by th

ID: 2086349 • Letter: M

Question

mathlab solution

4)1 The height of a rocket (in meters) can be represented by the following equaion: height = 2.13P-0.0013/ + 0.0000344.751 Create a vector of time (t) values from 0 to 100 at 2-second intervals. a) Use the find function to determine when the rocket hits the ground to within 2 seconds. (Hint: The value of height will be positive for aval (b) Use the max function to determine the maximum height of the rocket (c) Create a plot with ton the horizontal axis and height on the vertical axis for ues until the rocket hits the ground.) and the corresponding time. times until the rocket hits the ground. Be sure to add a title and axis labels.*

Explanation / Answer

a)
Matlab script to determine the when the rocket will hit the ground

t =0:2:100;
h = (2.13*(t.^2)) - (0.0013*(t.^4)) + (0.000034*(t.^4.751));
time = find(h>0);
x_ans = max(time);
t_ans = t(x_ans)

Matlab scripts output shows

ie rocket will hit the ground at 62 secs

b)

To determine the maximum height of rocket we have to use max function of height vector as follows
h_ans = max(h(time))

The output for this part shows

c)

To plot the path we have to use following code

plot(t(time),h(time)), xlabel('Time Secs'), ylabel('Height Meter'), title('Profile of Rocket'), grid on