image thumbnail

Solver for nonlinear equation systems: newton.m

version 2.0.2 (192 KB) by Are Mjaavatten
Solves a system f(x) = 0 with n equations in n variables.


Updated 12 Jan 2021

View License

This is a simple and fast solver for nonlinear equation systems. Calculates a numerical Jacobian if not supplied by the user. It is an alternative to fsolve in Optimization Toolbox. In addition it allows bounds on independent variables, helping the user to find the relevant solution and avoid that his/her function is called with unwanted values.

Many implementations of Newton's method are already available on the File Exchange, but they are often restricted to one or a fixed number of equations, or they are tailored to specific applications. I have found this version useful for a range of problems.

Live scripts for help and examples are included.

Cite As

Are Mjaavatten (2021). Solver for nonlinear equation systems: newton.m (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2020a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!