Statistics Toolbox    
poissrnd

Random numbers from the Poisson distribution

Syntax

Description

R = poissrnd(LAMBDA) generates Poisson random numbers with mean LAMBDA. The size of R is the size of LAMBDA.

R = poissrnd(LAMBDA,m) generates Poisson random numbers with mean LAMBDA, where m is a 1-by-2 vector that contains the row and column dimensions of R.

R = poissrnd(LAMBDA,m,n) generates Poisson random numbers with mean LAMBDA, where scalars m and n are the row and column dimensions of R.

Examples

Generate a random sample of 10 pseudo-observations from a Poisson distribution with  = 2.

See Also

poisscdf, poissfit, poissinv, poisspdf, poisstat


  poisspdf poisstat