lsqnonlin

Optimization

Nonlinear least-squares solver (alias for sl_leastSquares).

Syntax

lsqnonlin(f, x0)

Examples

lsqnonlin(@(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.