Compute mean and variance of the continuous uniform distribution.
a and b must be of common size or one of them must be scalar and a must be less than b
a = 1:6; b = 2:2:12; [m, v] = unifstat (a, b)
[m, v] = unifstat (a, 10)
Package: statistics