binornd
Random arrays from the Binomial distribution.
r = binornd (n, ps)
returns a matrix of random
samples from the binomial distribution with parameters n and ps,
where n is the number of trials and ps is the probability of
success. The size of r is the common size of n and ps.
A scalar input functions as a constant matrix of the same size as the other
inputs.
When called with a single size argument, binornd
returns a square
matrix with the dimension specified. When called with more than one scalar
argument, the first two arguments are taken as the number of rows and columns
and any further arguments specify additional matrix dimensions. The size may
also be specified with a row vector of dimensions, sz.
Further information about the binomial distribution can be found at https://en.wikipedia.org/wiki/Binomial_distribution
See also: binocdf, binoinv, binopdf, binofit, binolike, binostat, binotest
Source Code: binornd