Statistics Toolbox | ![]() ![]() |
Mean and variance for the Weibull distribution
Syntax
Description
[M,V] = weibstat(A,B)
returns the mean and variance for the Weibull distribution with parameters specified by A and B. Vector or matrix inputs for A and B must have the same size, which is also the size of M
and V
. A scalar input for A or B is expanded to a constant matrix with the same dimensions as the other input.
The mean of the Weibull distribution with parameters a and b is
Examples
[m,v] = weibstat(1:4,1:4) m = 1.0000 0.6267 0.6192 0.6409 v = 1.0000 0.1073 0.0506 0.0323 weibstat(0.5,0.7) ans = 3.4073
See Also
weibcdf
, weibfit
, weibinv
, weiblike
, weibpdf
, weibplot
, weibrnd
![]() | weibrnd | wishrnd | ![]() |