lsqcurvefit
Optimization
Nonlinear least-squares curve fitting.
Syntax
lsqcurvefit(f, x0, xdata, ydata)
Examples
lsqcurvefit(@(p,x) p(1)*exp(p(2)*x), [1, -0.1], [1,2,3], [2,1,0.5])▶ Run
See Also
Try SimLab — Free MATLAB® Alternative
466 functions. Runs in your browser. No install.
Open SimLab