wblpdf
Weibull probability density function (PDF).
For each element of x, compute the probability density function (PDF) of the Weibull distribution with scale parameter lambda and shpe parameter k. The size of y is the common size of x, lambda, and k. A scalar input functions as a constant matrix of the same size as the other inputs.
Default values are lambda = 1, k = 1.
Further information about the Weibull distribution can be found at https://en.wikipedia.org/wiki/Weibull_distribution
See also: wblcdf, wblinv, wblrnd, wblfit, wbllike, wblstat, wblplot
Source Code: wblpdf
## Plot various PDFs from the Weibul distribution x = 0:0.001:2.5; y1 = wblpdf (x, 1, 0.5); y2 = wblpdf (x, 1, 1); y3 = wblpdf (x, 1, 1.5); y4 = wblpdf (x, 1, 5); plot (x, y1, "-b", x, y2, "-r", x, y3, "-m", x, y4, "-g") grid on ylim ([0, 2.5]) legend ({"λ = 5, k = 0.5", "λ = 9, k = 1", ... "λ = 6, k = 1.5", "λ = 2, k = 5"}, "location", "northeast") title ("Weibul PDF") xlabel ("values in x") ylabel ("density") |