unidstat - Discrete uniform mean of and variance
Syntax
[M,V] = unidstat(N)
Description
[M,V] = unidstat(N) returns
the mean of and variance for the discrete uniform distribution with
corresponding maximum observable value in N.
The mean of the discrete uniform distribution with parameter N is
. The variance is
.
Examples
[m,v] = unidstat(1:6)
m =
1.0000 1.5000 2.0000 2.5000 3.0000 3.5000
v =
0 0.2500 0.6667 1.2500 2.0000 2.9167
See Also
unidpdf, unidcdf, unidinv, unidrnd
Uniform Distribution (Discrete)
 | unidrnd | | unifcdf |  |
Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
Get the Interactive Kit