Main Content

raylstat

Rayleigh mean and variance

Syntax

[M,V] = raylstat(B)

Description

[M,V] = raylstat(B) returns the mean of and variance for the Rayleigh distribution with scale parameter B.

The mean of the Rayleigh distribution with parameter b is bπ/2and the variance is

4π2b2

Examples

[mn,v] = raylstat(1)
mn =
  1.2533
v =
  0.4292

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Version History

Introduced before R2006a

Go to top of page