chi2cdf
Chi-square cumulative distribution function.
For each element of x, compute the cumulative distribution function (CDF) at x of the Chi-Squared distribution with df degrees of freedom. The chi-square density function with df degrees of freedom is the same as a gamma density function with parameters df/2 and 2.
The size of p is the common size of x and df. A scalar input functions as a constant matrix of the same size as the other input.
p = chi2cdf (x, df, "upper")
computes the upper tail
probability of the Chi-Squared distribution with df degrees of freedom
at the values in x.
See also: chi2inv, chi2pdf, chi2rnd, chi2stat
Source Code: chi2cdf