chi_squared.m

Returns chi^2 given data and a fit

You are now following this Submission

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 .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0