| Statistics Toolbox | Search  Help Desk |
| unifinv | Examples |
Inverse continuous uniform cumulative distribution function (cdf).
Syntax
X = unifinv(P,A,B)
Description
unifinv(P,A,B) computes the inverse of the uniform cdf with parameters A and B at the values in X. The arguments X, A, and B must all be the same size except that scalar arguments function as constant matrices of the common size of the other arguments. A and B are the minimum and maximum values respectively. The inverse of the uniform cdf is:
Examples
What is the median of the standard uniform distribution?median_value = unifinv(0.5)
median_value =
0.5000
What is the 99th percentile of the uniform distribution between -1 and 1?
percentile = unifinv(0.99,-1,1)
percentile =
0.9800