poisspdf

Compute Poisson distribution probability density function values.

Syntax

d=poisspdf(x,lambda)

Inputs

x
Values of the distribution random variable.
Type: double
Dimension: scalar | vector | matrix
lambda
Mean.
Type: double
Dimension: scalar | vector | matrix

Outputs

d
Probability density values.

Examples

Single value poisspdf example:
x=3;
lambda = 5;
d = poisspdf(x,lambda)
d = 0.14037
Vector poisspdf example:
x=[1:1:5];
lambda = 5;
d = poisspdf(x,lambda)
d = [Matrix] 1 x 7
0.03369 0.084224 0.14037 0.17547 0.17547 0.14622 0.10444