poissrndPseudo-random number of a Poisson distribution
poissrnd(lamb)lamb.lamb should contains real, non-negative numbers.lamb.poissrnd(lamb,m)lamb.m should be a positive integer.m-by-m matrix.lamb should be a scalar or an m-by-m matrix.lamb should contains real, non-negative numbers.poissrnd(lamb,s1,s2,...,sn)lamb.s1, s2, ... sn should be real, non-negative integers.s1,s2,...,sn].lamb should be a scalar or an array of size [s1,s2,...,sn].lamb should contains real, non-negative numbers.poissrnd(lamb,sizeVec)lamb.sizeVec.lamb should be a scalar or an array of size sizeVec.lamb should contains real, non-negative numbers.lambda = 10;
poissrnd(lambda, 1, 10)
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