FUNCTION REFERENCE

poissrnd

Poisson random numbers.

Poisson random numbers.

Syntax

R = poissrnd(LAMBDA)

Syntax

R = poissrnd(LAMBDA, m, n, ...)

Syntax

R = poissrnd(LAMBDA, [m n ...])

Draws from the Poisson distribution with mean LAMBDA >= 0. Without a size the result has the common size of the parameters; with one, non-scalar parameters must have that size. Invalid parameters give NaN.

Example

rng(0); poissrnd(3.5, 1, 3)

Differences from MATLAB: draws use the session's Mersenne Twister stream, so rng(seed) makes them reproducible; for a given seed the numbers follow the same distribution as MATLAB's but are not the same numbers.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.