Question: what is fminunc in matlab?
Answer: fminunc finds a minimum of a scalar function of several variables, starting at an initial estimate. This is generally referred to as unconstrained nonlinear optimization. x = fminunc(fun,x0) starts at the point x0 and finds a local minimum x of the function described in fun . x0 can be a scalar, vector, or matrix.