Use the MATLAB Function to find the relative minimum of the
Use the MATLAB Function to find the relative minimum of the function: f(x) = sin x + cos x, on[3, 6, 5]
Solution
There is no such function called parabint; however fminbnd function is available to find minimum of a function within a bound. the syntax is x = fminbnd(fun,x1,x2)
here we need to find minima of the function sin X + cos X
matab code
fx = diff(f,x) % 1st derivative of function
xc = solve(fx) %critical point by solving fx=0
then we get 2 critical points for the function, the minimum one is the minima.
![Use the MATLAB Function to find the relative minimum of the function: f(x) = sin x + cos x, on[3, 6, 5]SolutionThere is no such function called parabint; howev Use the MATLAB Function to find the relative minimum of the function: f(x) = sin x + cos x, on[3, 6, 5]SolutionThere is no such function called parabint; howev](/WebImages/45/use-the-matlab-function-to-find-the-relative-minimum-of-the-1140655-1761611699-0.webp)