### Function Reference: `raylrnd`

statistics: r = raylrnd (sigma)
statistics: r = raylrnd (sigma, rows)
statistics: r = raylrnd (sigma, rows, cols, …)
statistics: r = raylrnd (sigma, [sz])

Random arrays from the Rayleigh distribution.

`r = raylrnd (sigma)` returns an array of random numbers chosen from the Rayleigh distribution with scale parameter sigma. The size of r is the size of sigma. A scalar input functions as a constant matrix of the same size as the other inputs. sigma must be a finite real number greater than 0, otherwise `NaN` is returned.

When called with a single size argument, `raylrnd` 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 Rayleigh distribution can be found at https://en.wikipedia.org/wiki/Rayleigh_distribution

See also: raylcdf, raylinv, raylpdf, raylfit, rayllike, raylstat

Source Code: raylrnd