Since MATLAB solves the nonlinear system using iterative methods we need to initialize the solver with an initial_guess. Solving Non-Linear equations can be difficult but Matlab provides fsolve function to solve these equations. Roots fzero funcx0.
Set Equations and Inequalities as fmincon Constraints You can reformulate the problem and use fmincon as follows.
How to Solve a System of Nonlinear Equations in matlab. Give a constant objective function such as x0 which evaluates to 0 for each x. Y solve eqnsvars solves the system of equations eqns for the variables vars and returns a structure that contains the solutions. Write a function that computes the left-hand side of these two equations.