Statistics Toolbox | ![]() ![]() |
Random numbers from the Weibull distribution
Syntax
Description
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 = weibrnd(A,B)
R
. A scalar input for A or B is expanded to a constant matrix with the same dimensions as the other input.
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)
generates Weibull random numbers with parameters A and B, where scalars m and n are the row and column dimensions of R.R = weibrnd(A,B,m,n)
Devroye refers to the Weibull distribution with a single parameter; this is weibrnd
with A = 1
.
Examples
n1 = weibrnd(0.5:0.5:2,0.5:0.5:2) n1 = 0.0093 1.5189 0.8308 0.7541 n2 = weibrnd(1/2,1/2,[1 6]) n2 = 29.7822 0.9359 2.1477 12.6402 0.0050 0.0121
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 | ![]() |