betapdf
Beta probability density function
📝Syntax
y = betapdf(x, a, b)
📥Input Arguments
Parameter Description
x real numeric array.
a positive first shape parameter.
b positive second shape parameter.
📤Output Arguments
Parameter Description
y probability density values.
📄Description

betapdf computes beta distribution density values. Scalar inputs are expanded to match array inputs.

💡Examples
x = [0 0.1 0.5 0.9 1];
y = betapdf(x, 2, 5);
🔗See Also
betacdfbetainv
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub