[TOC]

poissrnd

Pseudo-random number of a Poisson distribution

Usages

poissrnd(lamb)

poissrnd(lamb,m)

poissrnd(lamb,s1,s2,...,sn)

poissrnd(lamb,sizeVec)

Examples

Input
lambda = 10;
poissrnd(lambda, 1, 10)
Output
ans = 
Columns 1 through 3:
 9.0000   12.000   8.0000
Columns 4 through 6:
 6.0000   11.000   9.0000
Columns 7 through 9:
 13.000   11.000   13.000
Column 10:
 12.000

Differences With MATLAB