Documentation Center

  • Trial Software
  • Product Updates

Contents

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 of R is the size of B.

R = raylrnd(B,v) returns a matrix of random numbers chosen from the Rayleigh distribution with parameter B, where v is a row vector. If v is a 1-by-2 vector, R is a matrix with v(1) rows and v(2) columns. If v 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 parameter B, where scalars m and n are the row and column dimensions of R.

Examples

r = raylrnd(1:5)
r =
  1.7986  0.8795  3.3473  8.9159  3.5182

See Also

| | | | |

Was this topic helpful?