Hello MATLAB Community,

You are my last resort! I need to apply EM clustering to a couple of thousands of matrices (m rows, n columns). The corresponding k-means works well.

However, I have trouble figuring out the Gaussian probability density function for entities that are matrices.

mvnpdf(X,Mu,Sigma) is supposed to receive a matrix for X. But will it be consistent with what I need?

Thanks in advance!

## Best Answer