| Statistics Toolbox | Search  Help Desk |
| betacdf | Examples |
Beta cumulative distribution function (cdf).
Syntax
P = betacdf(X,A,B)
Description
betacdf(X,A,B) computes the beta cdf with parameters A and B at the values in X. The arguments X, A, and B must all be the same size except that scalar arguments function as constant matrices of the common size of the other arguments. The parameters A and B must both be positive and x must lie on the interval
Examples
x = 0.1:0.2:0.9;
a = 2;
b = 2;
p = betacdf(x,a,b)
p =
0.0280 0.2160 0.5000 0.7840 0.9720
a = [1 2 3];
p = betacdf(0.5,a,a)
p =
0.5000 0.5000 0.5000