Rayleigh probability density function
Y = raylpdf(X,B)
Y = raylpdf(X,B) computes
the Rayleigh pdf at each of the values in
the corresponding scale parameter,
be vectors, matrices, or multidimensional arrays that all have the
same size, which is also the size of
A scalar input for
expanded to a constant array with the same dimensions as the other
The Rayleigh pdf is
Compute the pdf of a Rayleigh distribution with parameter
B = 0.5.
x = [0:0.01:2]; p = raylpdf(x,0.5);
Plot the pdf.