betainv

Compute beta distribution inverse cumulative distribution function values.

Syntax

x=betainv(p,a,b)

Inputs

p
Probability values.
Type: double
Dimension: scalar | vector | matrix
a,b
Shape parameters.
Type: double
Dimension: scalar | vector | matrix

Outputs

x
Values of the distribution random variable.

Examples

Single value betainv example:
p = 0.5;
a = 5;
b = 3;
x = betainv(p,a,b)
x = 0.63588
Vector betainv example:
p = [0.1:0.1:0.9];
a = 5;
b = 3;
x = betainv(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