| Statistics Toolbox | Search  Help Desk |
| exppdf | Examples |
Exponential probability density function (pdf).
Syntax
Y = exppdf(X,MU)
Description
exppdf(X,MU) computes the exponential pdf with parameter settings MU at the values in X. The arguments X and MU must be the same size except that a scalar argument functions as a constant matrix of the same size of the other argument. The parameter MU must be positive. The exponential pdf is:
Examples
y = exppdf(5,1:5)
y =
0.0067 0.0410 0.0630 0.0716 0.0736
y = exppdf(1:5,1:5)
y =
0.3679 0.1839 0.1226 0.0920 0.0736