fits(f,xd,yd,p0,n,m​)

Data fitting given model function f(x,p)

You are now following this Submission

Parameter Fitting: given a model function f(x,p), this program finds the minimizer of F(p) = norm(d,n), where d = error vector

Usage:
Least squares [default]
fits(@(x,p)f(x,p),xd,yd,p0)
Minimum n-norm with relative (m=1) or non-relative error (m=0)
fits(@(x,p)f(x,p),xd,yd,p0,n,m)

Cite As

Mark Holmes (2026). fits(f,xd,yd,p0,n,m) (https://www.mathworks.com/matlabcentral/fileexchange/72113-fits-f-xd-yd-p0-n-m), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0