Statistics and Machine Learning Toolbox™ offers multiple ways to work with the chi-square distribution.
To learn about the chi-square distribution, see Chi-Square Distribution.
The chi-square distribution is commonly used in hypothesis testing, particularly the chi-square test for goodness of fit.