version (3.38 KB) by Matt Fig
Finds the root(s) of a function of one variable, including complex roots, using Newton's method.


Updated 21 May 2009

View License

NEWTZERO(f,xr,n,tol) finds roots of function f near guess xr with n iterations to tolerance tol. May find more than one root, even if guess is way off. NEWTZERO often works to find complex roots where FZERO fails. See examples in help.
The initial guess, number of iterations, and tolerance are optional arguments.

NEWTZERO finds the roots of functions of only one variable!

Please email me about bugs or other concerns. Thanks.

Cite As

Matt Fig (2022). newtzero (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007a
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!