genfit

This is a data fitting program tailored for use in physics or other physical sciences.
647 Downloads
Updated 2 Oct 2014

View License

Internally, the function is really just a fairly carefully checked wrapper for the Matlab fitting routines that provides an interface that is amenable to practitioners of physics and other physical sciences. In addition, it can deal with error bars on both the dependent and independent variables (as is common in physics measurements).
The function will perform linear or non-linear fits of data to any user-defined function of one variable with or without uncertainties.

Outputs include the best fit values of the fit parameters, uncertainties in the fit parameters. If uncertainties in the data were supplied, the function also provides a meaningful value of the reduced chi squared at the solution. It also provides the probability of obtaining the quoted reduced chi squared assuming the uncertainties are randomly distributed about the fit function and their size was estimated correctly. (Essentially, this gives the probability that the fit function is consistent with the data.)

Cite As

Andri M. Gretarsson (2024). genfit (https://www.mathworks.com/matlabcentral/fileexchange/39003-genfit), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Physics in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.1.0.0

Added the capability of correctly handling uncertainties in the independent variable.

1.0.0.0