I need to solve a system of non-linear equations. For example, I need to solve 10,000 equations, where each individual equation is of the form: 0 = fun(x, c). I want to get a vector X which contains the solution x for each individual equation. In the function, the c is a parameter. There're 10,000 different parameters, so that's why there're 10,000 equations. I have already know how to write a for loop and use fzero to solve for each individual equation with their corresponding c. However, that's too slow. Is there a better way to use "fsolve" to solve this systems of nonlinear equations?

# MATLAB: Solving systems of non-linear equations

fsolve

###### Related Question

- How to solve symbolic system of equations
- How to restrict the solution of a nonlinear system of equation to be positive?
- How to solve system of 3 non linear equations using fsolve, provided that all the three equations have 1 by 15 matrix terms in it.
- Could fsolve cause trouble when using it to solve linear equations

## Best Answer