sl_leastSquares

Optimization

Internal nonlinear least-squares solver. Use lsqnonlin() as the public alias.

Syntax

sl_leastSquares(f, x0)

Examples

sl_leastSquares(@(x) [x(1)-1, x(2)-2], [0, 0])
▶ Run

Limitations

Requires server acceleration.

See Also

This function requires server acceleration. Available on paid tiers.

Try SimLab — Free MATLAB® Alternative

466 functions. Runs in your browser. No install.

Open SimLab

Stay Updated

Get notified about new simulations and tools. We send 1-2 emails per month.