I'm trying to implement Gaussian Mixture Model and EM algorithm using a matlab toolbox called Netlab. It uses EM algorithem in order to find the parameters of gaussian components. When I use "full" covariance matrix I get an error that says "covariance matrix must be positive in chol() funcion"(chol() is used to something called "cholesky decomposition"). But when I choose "diag" covariance matrix or "Spherical" covariance matrix. I will appriciate your helpful ideas.