chi_squared.m

Returns chi^2 given data and a fit
4.7K Downloads
Updated 15 Nov 2001

No License

Returns reduced chi^2 given a data set, a fit of the data, and the number of fitting parameters in the model.

Also handles error bars if known.

Cite As

Mike Scarpulla (2026). chi_squared.m (https://www.mathworks.com/matlabcentral/fileexchange/1049-chi_squared-m), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R12
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.0.0