Statistics Toolbox | ![]() ![]() |
Continuous uniform cumulative distribution function (cdf)
Syntax
Description
P = unifcdf(X,A,B)
computes the uniform cdf at each of the values in X
using the corresponding parameters in A and B (the minimum and maximum values, respectively). Vector or matrix inputs for X, A, and B must all have the same size. A scalar input is expanded to a constant matrix with the same dimensions as the other inputs.
The standard uniform distribution has A = 0
and B = 1
.
Examples
What is the probability that an observation from a standard uniform distribution will be less than 0.75?
What is the probability that an observation from a uniform distribution with a
= -1
and b
= 1
will be less than 0.75?
See Also
cdf
, unifinv
, unifit
, unifpdf
, unifrnd
, unifstat
![]() | unidstat | unifinv | ![]() |