chi_squared.m

Returns chi^2 given data and a fit
4.6K 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 (2024). 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

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0