Continuous uniform cumulative distribution function
p = unifcdf(x,a,b)
p = unifcdf(x,a,b,'upper')
p = unifcdf(x,a,b) returns
the uniform cdf at each value in
x using the corresponding
lower endpoint (minimum),
a and upper endpoint
b can be vectors, matrices, or multidimensional
arrays that all have the same size. A scalar input is expanded to
a constant matrix with the same dimensions as the other inputs.
p = unifcdf(x,a,b,'upper') returns the
complement of the uniform cdf at each value in
using an algorithm that more accurately computes the extreme upper
The uniform cdf is
The standard uniform distribution has a =
0 and b =
Compute Uniform Distribution cdf
What is the probability that an observation from a standard uniform distribution will be less than 0.75?
probability = unifcdf(0.75)
probability = 0.7500
What is the probability that an observation from a uniform distribution with
1 will be less than 0.75?
probability = unifcdf(0.75,-1,1)
probability = 0.8750
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
Accelerate code by running on a graphics processing unit (GPU) using Parallel Computing Toolbox™.
This function fully supports GPU arrays. For more information, see Run MATLAB Functions on a GPU (Parallel Computing Toolbox).
Introduced before R2006a