function p=gaussian(x,m,C); % p=gaussian(x,m,C); % % Evaluate the multi-variate density with mean vector m and covariance % matrix C for the input vector x. % % p=gaussian(X,m,C); % % Vectorized version: Here X is a matrix of column vectors, and p is % a vector of probabilities for each vector. d=length(m); if size(x,1)~=d x=x'; end N=size(x,2); detC = det(C); if rcond(C)