MATLAB: Obtain P values from Chi-square

chisquaredp-values

Hi, I was wondering if there's a matlab function (or know of a way to code) to obtain P values from a X^2 value with varying degrees of freedom. Thanks.

Best Answer

if you have the stats toolbox:
chi2cdf(n,dof);