Newton's method for 2 variables non-linear system

With this code, any 2 equation (non-linear) system can be solved by the newton's method.

You are now following this Submission

This code solves any 2 non-linear equations by newton's method entered by the user. with little alterations this code can work for more variables as well. The user will have to include the extra variables being used in 2+ equations system along with slight modifications in the first loop and the line of code taking Jacobian and declaring strings as inline functions.

Cite As

Ahsun Ali (2026). Newton's method for 2 variables non-linear system (https://www.mathworks.com/matlabcentral/fileexchange/48543-newton-s-method-for-2-variables-non-linear-system), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0