Member-only story
Functions in MATLAB: Finding the minimum of a function (Part-2)
Now, let’s talk about the function called fminbnd. The fminbnd function helps to find the minimum of a function of a single variable. fminbnd is a one-dimensional minimizer that determines the problem’s minimal. The fminbnd command can be used to find a single independent value that minimizes a one-dimensional function over a given domain.
Given some starting guesses, the fminsearch function can identify a single vector of values that will minimize a multi-dimensional function.
A. fminbnd
- fminbnd will find a minimum that occurs on a boundary.
- If the specified range of the independent variable does not enclose the global
minimum, fminbnd will not find the global minimum.
Syntax:- x= fminbnd(@function, X1, X2)
@function is the function handle for the function and returns the value of x that minimizes the function in the interval x1≤x≤x2.