Weighted Nonlinear Curve Fit Script with Plotter

This curve fitting script calculates best guess and errors using data with y-error. Plot see preview

You are now following this Submission

This weighted nonlinear fit script fulfills the requirements of physicists, chemists and other quantative scientists, who need a fitting script for the everyday use. This script fits and creates nice plots with results and data automatically printed in a legend. It saves much time compared to using origin or other fitting programs.

It uses built in minimization routines to obtain the best guess for the fit variables. The error is determined by adding some value x (depending on how many variables are fitted) to the minimum chi^2 value and finding the value of the respective fitting variable so that chi^2 is equal to min(chi^2)+x.

Cite As

Jannick (2026). Weighted Nonlinear Curve Fit Script with Plotter (https://uk.mathworks.com/matlabcentral/fileexchange/35565-weighted-nonlinear-curve-fit-script-with-plotter), 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.4.0.0

example added

1.3.0.0

rounding on n significant digits (default n=2)

1.2.0.0

new options like change of header

1.1.0.0

minor bug fixes

1.0.0.0