exppdf

Compute exponential distribution probability density function values.

Syntax

d=exppdf(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 exppdf example:
x=3;
lambda = 5;
d = exppdf(x,lambda)
d = 0.10976
Vector exppdf example:
x=[1:1:5];
lambda = 5;
d = exppdf(x,lambda)
d = [Matrix] 1 x 5
0.16375 0.13406 0.10976 0.089866 0.073576