FUNCTION REFERENCE

betapdf

Beta probability density function.

Beta probability density function.

Syntax

Y = betapdf(X, A, B)

Evaluates the probability density of the beta distribution with shapes A > 0 and B > 0 at X. Parameters without a default are required. Every argument may be a scalar or an array; scalars expand to the size of the others, and arrays must have the same size. Parameters outside their domain give NaN; NaN inputs give NaN.

Example

betapdf(0.4, 2, 3)

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.