Question: I need help on problem 2 and how to keep it separate from question 1 , but still on the same script file. a )

I need help on problem 2 and how to keep it separate from question 1, but still on the same script file.
a) Create an anonymous function called my_function equal to
y=-x2-5x-3+ex
b) Evaluate the function at x=2.
c) Use the fplot command to create a plot from x=-5 to x=+5. This should give you an
idea of initial guess(es).
d) Find the zero-crossing point(s) within the bound given in part (c). Display the
answer(s) in the command window.
e) Find the local minima and the local maxima within the given bound.
The relationship between time, t, and height, h(t), of a rocket ship is
h(t)=-g2t2+125t+500 for t>0
a) Create an anonymous function to calculate the height and evaluate height at 20
seconds. g=9.8ms-2.
b) Use the fplot command to plot height vs. time for the valid height values only. [hint:
height and time can't be negative values.]
c) Find the ground time of the rocket ship.
d) Find the time at which the maximum height occurs and the maximum height with
respect to the ground.
[GA: Please check to see if both the graphs are visible when codes are executed. If the graphs are
not available then assign a 'zero' for the rest of the problem.]
I need help on problem 2 and how to keep it

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 Programming Questions!