This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Rayleigh cumulative distribution function


p = raylcdf(x,b)
p = raylcdf(x,b,'upper')


p = raylcdf(x,b) returns the Rayleigh cdf at each value in x using the corresponding scale parameter, b. x and b can be vectors, matrices, or multidimensional arrays that all have the same size. A scalar input for x or b is expanded to a constant array with the same dimensions as the other input.

p = raylcdf(x,b,'upper') returns the complement of the Rayleigh cdf at each value in x, using an algorithm that more accurately computes the extreme upper tail probabilities.

The Rayleigh cdf is



collapse all

Compute the cdf of a Rayleigh distribution with parameter B = 1.

x = 0:0.1:3;
p = raylcdf(x,1);

Plot the cdf.



[1] Evans, M., N. Hastings, and B. Peacock. Statistical Distributions. Hoboken, NJ: Wiley-Interscience, 2000. pp. 134–136.

Extended Capabilities

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

Introduced before R2006a

Was this topic helpful?