Products & Services Solutions Academia Support User Community Company

Learn more about Statistics Toolbox   

unifinv - Continuous uniform inverse cumulative distribution function

Syntax

X = unifinv(P,A,B)

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. P, A, and B can be vectors, matrices, or multidimensional arrays that all have the same size. A scalar input is expanded to a constant array 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?

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

See Also

icdf, unifcdf, unifpdf, 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