FUNCTION REFERENCE

unifpdf

Continuous uniform probability density function.

Continuous uniform probability density function.

Syntax

Y = unifpdf(X, A, B)

Evaluates the probability density of the continuous uniform distribution with support [A, B] with A < B (defaults 0 and 1) at X. 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

unifpdf(0.3, 0, 2)

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