Question: HW 1 2 ( 5 0 Points ) Create an anonymous function called my _ function, equal to - x 2 - 5 x -
HW
Points Create an anonymous function called myfunction, equal to
a Use the fplot function to create a plot from to 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
fmidbandfunctionhandle, xmin, xmax
Three inputs are required; the function handle, the minimum value of and the maximum value of The function searched between the minimum value of and the maximum value of for a point where the function is a minimum.
please show matlab code and impote as well thank you
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
