y = gampdf(x, a)
y = gampdf(x, a, b)
| Parameter | Description |
|---|---|
| x | real numeric array. |
| a | positive shape parameter. |
| b | positive scale parameter, default 1. |
| Parameter | Description |
|---|---|
| y | probability density values. |
gampdf computes gamma distribution density values. Scalar inputs are expanded to match array inputs.
x = [0 0.5 1 2 5];
y = gampdf(x, 2, 3);
| Version | Description |
|---|---|
| 2.0.0 | initial version |