Products & Services Solutions Academia Support User Community Company

Learn more about Statistics Toolbox   

unifcdf - Continuous uniform cumulative distribution function

Syntax

P = unifcdf(X,A,B)

Description

P = unifcdf(X,A,B) computes the uniform cdf at each of the values in X using the corresponding lower endpoint (minimum), A and upper endpoint (maximum), B. X, A, and 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.

The uniform cdf is

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?

probability = unifcdf(0.75)
probability =
  0.7500

What is the probability that an observation from a uniform distribution with a = -1 and b = 1 will be less than 0.75?

probability = unifcdf(0.75,-1,1)
probability =
  0.8750

See Also

cdf, unifpdf, unifinv, unifstat, unifit, unifrnd

Uniform Distribution (Continuous)

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS