wblpdf
statistics: y = wblpdf (x)
statistics: y = wblpdf (x, lambda)
statistics: y = wblpdf (x, lambda, k)
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 shape 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
Input arguments must be double or single; integer, logical,
and character arrays are rejected. MATLAB accepts a character array and
evaluates it at the character codes, which Octave deliberately does not,
since a character array is an integer type and integers are refused too.
The prob.WeibullDistribution class names these same two parameters
A and B, after MATLAB. lambda is its A and
k is its B.
See also: wblcdf, wblinv, wblrnd, wblfit, wbllike, wblstat, wblplot
Source Code: wblpdf
Plot various PDFs from the Weibull 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 ('Weibull PDF')
xlabel ('values in x')
ylabel ('density')