Question: HW 1 2 ( 5 0 Points ) Create an anonymous function called my _ function, equal to - x 2 - 5 x -

HW12
(50 Points) Create an anonymous function called my_function, equal to
-x2-5x-3+ex
a) Use the fplot function to create a plot from x=-5 to x=5. Recall that the fplot function can accept a function handle as input.
b) Use the fminbnd function to find the minimum function value in this range. The fminbnd functions an example of function function. Since it requires a function or function handle as input. The syntax is
fmidband(function_handle, xmin, xmax)
Three inputs are required; the function handle, the minimum value of x and the maximum value of x. The function searched between the minimum value of x and the maximum value of x for a point where the function is a minimum.
please show matlab code and impote as well thank you
HW 1 2 ( 5 0 Points ) Create an anonymous

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!