raylrnd
Rayleigh random numbers
Syntax
R = raylrnd(B)
R = raylrnd(B,v)
R = raylrnd(B,m,n)
Description
R = raylrnd(B)
returns a matrix of random numbers chosen from the Rayleigh distribution with scale parameter,B
.B
can be a vector, a matrix, or a multidimensional array. The size ofR
is the size ofB
.
R = raylrnd(B,v)
returns a matrix of random numbers chosen from the Rayleigh distribution with parameterB
, wherev
is a row vector. Ifv
is a 1-by-2 vector,R
is a matrix withv(1)
rows andv(2)
columns. Ifv
is 1-by-n,R
is an n-dimensional array.
R = raylrnd(B,m,n)
returns a matrix of random numbers chosen from the Rayleigh distribution with parameterB
, where scalarsm
andn
are the row and column dimensions ofR
.
Examples
r = raylrnd(1:5) r = 1.7986 0.8795 3.3473 8.9159 3.5182
Extended Capabilities
Introduced before R2006a