Question: how fsolve works in matlab?
Answer: for x, where F(x) is a function that returns a vector value. x is a vector or a matrix; see Matrix Arguments. x = fsolve( fun , x0 ) starts at x0 and tries to solve the equations fun(x) = 0, an array of zeros. x = fsolve( fun , x0 , options ) solves the equations with the optimization options specified in options .