Function Reference
— Function File: betarnd (a, b, r, c)
— Function File: betarnd (a, b, sz)

Return an r by c or size (sz) matrix of random samples from the Beta distribution with parameters a and b. Both a and b must be scalar or of size r by c.

If r and c are omitted, the size of the result matrix is the common size of a and b.