Function Reference: exprnd

statistics: r = exprnd (mu)
statistics: r = exprnd (mu, rows)
statistics: r = exprnd (mu, rows, cols, …)
statistics: r = exprnd (mu, [sz])

Random arrays from the exponential distribution.

r = exprnd (mu) returns an array of random numbers chosen from the exponential distribution with mean parameter mu. The size of r is the size of mu.

When called with a single size argument, exprnd returns a square matrix with the dimension specified. When called with more than one scalar argument, the first two arguments are taken as the number of rows and columns and any further arguments specify additional matrix dimensions. The size may also be specified with a row vector of dimensions, sz.

A common alternative parameterization of the exponential distribution is to use the parameter λ defined as the mean number of events in an interval as opposed to the parameter μ, which is the mean wait time for an event to occur. λ and μ are reciprocals, i.e. μ = 1 / λ.

Further information about the exponential distribution can be found at https://en.wikipedia.org/wiki/Exponential_distribution

See also: expcdf, expinv, exppdf, expfit, explike, expstat

Source Code: exprnd