Statistics: laplacernd

### Function Reference: `laplacernd`

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

Random arrays from the Laplace distribution.

`r = laplacernd (mu, beta)` returns an array of random numbers chosen from the Laplace distribution with location parameter mu and scale parameter beta. The size of r is the common size of mu and beta. A scalar input functions as a constant matrix of the same size as the other inputs.

Both parameters must be reals and `beta > 0`. For `beta <= 0`, `NaN` is returned.

When called with a single size argument, `laplacernd` 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.

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

See also: laplacecdf, laplaceinv, laplacernd

Source Code: laplacernd