icdf

Compute inverse cumulative distribution function values.

Syntax

x=icdf(dist,p,a,b)

Inputs

dist
The distribution name.
Type: string
p
Probability values.
Type: double
Dimension: scalar | vector | matrix
a,b
Distribution parameters.
Type: double | integer
Dimension: scalar

Outputs

x
Values of the distribution random variable.

Example

Vector icdf example with beta distribution.

p = [0.1:0.1:0.9];
a = 2;
b = 3;
icdf('beta',p,a,b)
x = [Matrix] 1 x 9
0.40382 0.48324 0.54145 0.59078 0.63588 0.67941 0.72366 0.77167 0.83036

Comments

The supported strings for the distribution type are as follows. 'beta' 'chi2' 'chisquare' 'exp' 'exponential' 'f' 'gam' 'gamma' 'logn' 'lognormal' 'norm' 'normal' 'poiss' 'poisson' 't' 'unif' 'uniform' 'wbl' 'weibull'