gaminv

Compute gamma distribution inverse cumulative distribution function values.

Syntax

x=gaminv(p,a,b)

Inputs

p
Probability values.
Type: double
Dimension: scalar | vector | matrix
a
Shape parameter.
Type: double
Dimension: scalar | vector | matrix
b
Scale parameter.
Type: double
Dimension: scalar | vector | matrix

Outputs

x
Values of the distribution random variable.

Examples

Single value gaminv example:
p = 0.5;
a = 10;
b = 0.5;
x = gaminv(p,a,b)
x = 4.8344
Vector gaminv example:
p = [0.1:0.1:0.9];
a = 10;
b = 0.5;
x = gaminv(p,a,b)
x = [Matrix] 1 x 9
3.1107 3.6446 4.0665 4.4522 4.8344 5.2378 5.6936 6.2594 7.103