Statistics: poissrnd

### Function Reference: `poissrnd`

statistics: r = poissrnd (lambda)
statistics: r = poissrnd (lambda, rows)
statistics: r = poissrnd (lambda, rows, cols, …)
statistics: r = poissrnd (lambda, [sz])

Random arrays from the Poisson distribution.

`r = normrnd (lambda)` returns an array of random numbers chosen from the Poisson distribution with rate parameter lambda. The size of r is the common size of lambda. A scalar input functions as a constant matrix of the same size as the other inputs. lambda must be a finite real number and greater or equal to 0, otherwise `NaN` is returned.

When called with a single size argument, `poissrnd` 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 Poisson distribution can be found at https://en.wikipedia.org/wiki/Poisson_distribution

See also: poisscdf, poissinv, poisspdf, poissfit, poisslike, poisstat

Source Code: poissrnd