Question: how does fminbnd work in matlab?
Answer: fminbnd finds the minimum of a function of one variable within a fixed interval. x = fminbnd(fun,x1,x2) returns a value x that is a local minimizer of the function that is described in fun in the interval x1 <= x <= x2 . fun is a function handle.