Products & Services Industries Academia Support User Community Company

Learn more about Statistics Toolbox   

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

random, raylpdf, raylcdf, raylinv, raylstat, raylfit

Rayleigh Distribution

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS