Function Reference: unifpdf

statistics: y = unifpdf (x)
statistics: y = unifpdf (x, a)
statistics: y = unifpdf (x, a, b)

Uniform probability density function (PDF).

For each element of x, compute the probability density function (PDF) at x of the uniform distribution on the interval [a, b]. The size of y is the common size of the input arguments. A scalar input functions as a constant matrix of the same size as the other inputs.

Default values are a = 0, b = 1.

See also: unifcdf, unifinv, unifrnd, unifstat

Source Code: unifpdf