| Statistics Toolbox | Search  Help Desk |
| weibpdf | Examples |
Weibull probability density function (pdf).
Syntax
Y = weibpdf(X,A,B)
Description
weibpdf(X,A,B) computes the Weibull pdf with parameters A and B at the values in X. The arguments X, A and B must all be the same size except that scalar arguments function as constant matrices of the common size of the other arguments. Parameters A and B are positive. The Weibull pdf is:
Examples
The exponential distribution is a special case of the Weibull distribution.lambda = 1:6;
y = weibpdf(0.1:0.1:0.6,lambda,1)
y =
0.9048 1.3406 1.2197 0.8076 0.4104 0.1639
y1 = exppdf(0.1:0.1:0.6,1./lambda)
y1 =
0.9048 1.3406 1.2197 0.8076 0.4104 0.1639
Reference
Devroye, L., Non-Uniform Random Variate Generation. Springer-Verlag. New York, 1986.