| Statistics Toolbox | Search  Help Desk |
| unidcdf | Examples |
Discrete uniform cumulative distribution (cdf) function.
Syntax
P = unidcdf(X,N)
Description
unidcdf(X,N) computes the discrete uniform cdf with parameter settings N at the values in X. The arguments X and N must be the same size except that a scalar argument functions as a constant matrix of the same size of the other argument. The maximum observable value, N, is a positive integer. The discrete uniform cdf is:
Examples
What is the probability of drawing a number 20 or less from a hat with the numbers from 1 to 50 inside?probability = unidcdf(20,50)
probability =
0.4000