Statistics Toolbox
  Go to function:
    Search    Help Desk 
unifpdf    Examples

Continuous uniform probability density function (pdf).

Syntax

Description

unifpdf(X,A,B) computes the continuous uniform pdf with parameters A and B at the values in X. The arguments X, A, and B must all be the same size except that scalar arguments function as constant matrices of the common size of the other arguments.

The parameter B must be greater than A.

The continuous uniform distribution pdf is:


The standard uniform distribution has A = 0 and B = 1.

Examples

For fixed a and b, the uniform pdf is constant.

What if x is not between a and b?



[ Previous | Help Desk | Next ]