Function Reference: cauchyrnd

statistics: r = cauchyrnd (x0, gamma)
statistics: r = cauchyrnd (x0, gamma, rows)
statistics: r = cauchyrnd (x0, gamma, rows, cols, …)
statistics: r = cauchyrnd (x0, gamma, [sz])

Random arrays from the Cauchy distribution.

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

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

See also: cauchycdf, cauchyinv, cauchypdf

Source Code: cauchyrnd