Statistics Toolbox    
betarnd

Random numbers from the beta distribution

Syntax

Description

R = betarnd(A,B) generates random numbers from the beta distribution with parameters specified by A and B. Vector or matrix inputs for A and B must have the same size, which is also the size of R. A scalar input for A or B is expanded to a constant matrix with the same dimensions as the other input.

R = betarnd(A,B,m) generates a matrix of size m containing random numbers from the beta distribution with parameters A and B, where m is a 1-by-2 vector containing the row and column dimensions of R.

R = betarnd(A,B,m,n) generates an m-by-n matrix containing random numbers from the beta distribution with parameters A and B.

Examples

See Also

betacdf, betafit, betainv, betalike, betapdf, betastat, rand, randtool


  betapdf betastat