Statistics Toolbox    
weibrnd

Random numbers from the Weibull distribution

Syntax

Description

R = weibrnd(A,B) generates Weibull random numbers with parameters A and B. Vector or matrix inputs for A and B must have the same size, which is also the size of R. A scalar input for A or B is expanded to a constant matrix with the same dimensions as the other input.

R = weibrnd(A,B,m) generates Weibull random numbers with parameters A and B, where m is a 1-by-2 vector that contains the row and column dimensions of R.

R = weibrnd(A,B,m,n) generates Weibull random numbers with parameters A and B, where scalars m and n are the row and column dimensions of R.

Devroye refers to the Weibull distribution with a single parameter; this is weibrnd with A = 1.

Examples

Reference

[1]  Devroye, L., Non-Uniform Random Variate Generation. Springer-Verlag. New York, 1986.

See Also

weibcdf, weibfit, weibinv, weiblike, weibpdf, weibplot, weibstat


  weibplot weibstat