y = betapdf(x, a, b)
| Parameter | Description |
|---|---|
| x | real numeric array. |
| a | positive first shape parameter. |
| b | positive second shape parameter. |
| Parameter | Description |
|---|---|
| y | probability density values. |
betapdf computes beta distribution density values. Scalar inputs are expanded to match array inputs.
x = [0 0.1 0.5 0.9 1];
y = betapdf(x, 2, 5);
| Version | Description |
|---|---|
| 2.0.0 | initial version |