| Statistics Toolbox | Search  Help Desk |
| betapdf | Examples |
Beta probability density function (pdf).
Syntax
Y = betapdf(X,A,B)
Description
betapdf(X,A,B) computes the beta pdf 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
a = [0.5 1; 2 4]