Qu

chi2rnd

Builtin index · Statistics & ML

result = chi2rnd(k, [rows], [cols], [seed=])

Input: k, rows, cols, seed · Output: result

What it is

Random draws from the chi-square 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 = chi2rnd(k, [rows], [cols], [seed=])
k —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.