p = chi2cdf(x, v)
p = chi2cdf(x, v, 'upper')
| Parameter | Description |
|---|---|
| x | real numeric array: values where the distribution is evaluated. |
| v | positive real numeric array or scalar: degrees of freedom. |
| Parameter | Description |
|---|---|
| p | cumulative probabilities or upper-tail probabilities. |
chi2cdf computes lower-tail chi-square probabilities by default and upper-tail probabilities when 'upper' is specified.
x = [0.5 1 2 5];
p = chi2cdf(x, 4);
q = chi2cdf(x, 4, 'upper');
| Version | Description |
|---|---|
| 2.0.0 | initial version |