Statistics Toolbox    
unifinv

Inverse continuous uniform cumulative distribution function (cdf)

Syntax

Description

X = unifinv(P,A,B) computes the inverse of the uniform cdf with parameters A and B (the minimum and maximum values, respectively) at the corresponding probabilities in P. Vector or matrix inputs for P, 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 inverse of the uniform cdf is

The standard uniform distribution has A = 0 and B = 1.

Examples

What is the median of the standard uniform distribution?

What is the 99th percentile of the uniform distribution between -1 and 1?

See Also

icdf, unifcdf, unifit, unifpdf, unifrnd, unifstat


  unifcdf unifit