Question: what is fminsearch in matlab?
Answer: min x f ( x ) f(x) is a function that returns a scalar, and x is a vector or a matrix. x = fminsearch( fun , x0 ) starts at the point x0 and attempts to find a local minimum x of the function described in fun .