Solution of one or more nonlinear equations in the least squares sense.


Updated 23 Apr 2013

View License

The function is an improved version of the function LMFnlsq widely tested on the nonlinear regression, curve fitting and identification problems. Better description is in the complementing file LMFnlsq2test.pdf.

Warning: The option 'Display' is changed for better control of intermediate results output. See help LMFnlsq2.

Cite As

Miroslav Balda (2023). LMFnlsq2 (https://www.mathworks.com/matlabcentral/fileexchange/39564-lmfnlsq2), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2006b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Systems of Nonlinear Equations in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

Improved the printout of results. The previous versions did not display the final solution if the iteration count were not integer multiple of required step of printing.

The new version of the function is a slight modification of the recent update. One statement, dated 2012-12-01, has been commented out because of its erroneous function under certain circumstances. The function is now fast and much more stable.

Repaired several bugs found by Jose. Improved description of the function and of the demo program LMFnlsq2test.

Display of intermediate results has been improved to fulfill better users' requirements.

Thanks Jose's detailed study of the code, small bugs were repaired and the code made more clear.