Qu

betarnd

Builtin index · Statistics & ML

result = betarnd(a, b, [rows], [cols], [seed=])

Input: a, b, rows, cols, seed · Output: result

What it is

Random draws from the beta distribution. Every parameter is required here (the size follows them); rows/cols and seed= work as for rand, and seed(n) governs unseeded calls.

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
result = betarnd(a, b, [rows], [cols], [seed=])
a number, vector, or matrixReturns a number, vector or (rows, cols) matrix.
b —not documented yet
rows optionalrows/cols and seed= work as for rand, and seed(n) governs unseeded calls.
cols optionalrows/cols and seed= work as for rand, and seed(n) governs unseeded calls.
seed optionalrows/cols and seed= work as for rand, and seed(n) governs unseeded calls.
result number, vector, or matrix
Returns a number, vector or (rows, cols) matrix. Added in v0.4.4.

Examples

No documentation example calls this form yet. The Statistics & ML chapter is where one belongs.