MATLAB: How to restrict the solution of a nonlinear system of equation to be positive?

I have a system of nonlinear equations but I want the solution to be postive. I'm solving the system with fsolve() but don't know how to restrict the solution on positive values only.

Best Answer

Use LSQNONLIN, instead of fsolve.
Related Question