Function Reference
— Function File: binornd (n, p, r, c)
— Function File: binornd (n, p, sz)

Return an r by c or a size (sz) matrix of random samples from the binomial distribution with parameters n and p. Both n and p 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 n and p.