FUNCTION REFERENCE

mvnpdf

Multivariate normal probability density function.

Multivariate normal probability density function.

Syntax

y = mvnpdf(X)

Syntax

y = mvnpdf(X, MU)

Syntax

y = mvnpdf(X, MU, SIGMA)

Evaluates the d-dimensional normal density at each row of the n-by-d matrix X, returning an n-by-1 column vector. MU is a 1-by-d row vector or an n-by-d matrix (default zeros(1, d)). SIGMA is a d-by-d symmetric positive definite covariance matrix or a 1-by-d row vector of positive diagonal variances (default eye(d)).

Example

mvnpdf([0 0; 1 0], [0 0], [1 0.5; 0.5 2])

Example

mvnpdf([0 0], [0 0], [1 2])

Differences from MATLAB: 3-D covariance arrays (d-by-d-by-n) are not supported yet.

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