| Statistics Toolbox | Search  Help Desk |
| fcdf | Examples |
F cumulative distribution function (cdf).
Syntax
P = fcdf(X,V1,V2)
Description
fcdf(X,V1,V2) computes the F cdf with parameters V1 and V2 at the values in X. The arguments X, V1 and V2 must all be the same size except that scalar arguments function as constant matrices of the common size of the other arguments. Parameters V1 and V2 must contain positive integers. The F cdf is:
1 and
2 will fall in the interval [0 x].
Examples
This example illustrates an important and useful mathematical identity for the F distribution.nu1 = 1:5;
nu2 = 6:10;
x = 2:6;
F1 = fcdf(x,nu1,nu2)
F1 =
0.7930 0.8854 0.9481 0.9788 0.9919
F2 = 1 - fcdf(1./x,nu2,nu1)
F2 =
0.7930 0.8854 0.9481 0.9788 0.9919