Code covered by the BSD License  

Highlights from

Be the first to rate this file! 13 Downloads (last 30 days) File Size: 6.77 KB File ID: #39003
image thumbnail




This is a data fitting program tailored for use in physics or other physical sciences.

| Watch this File

File Information

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.

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.)

Required Products MATLAB
Optimization Toolbox
MATLAB release MATLAB 7.11 (R2010b)
Other requirements If the Signal Processing toolbox is present, the 'regress' version of linear fitting can be used which is somewhat more robust than the usual 'lin' version but cannot be used with uncertainties.
Tags for This File   Please login to tag files.
Please login to add a comment or rating.

Contact us