GMM error

1 次查看(过去 30 天)
ruqayya
ruqayya 2012-5-25
Hello all, i m getting this error while computing GMM.m.why is this so????
??? Index exceeds matrix dimensions.
Error in ==> GMM at 34 COVAR(:,i) = Cluster_Covariance(Input(:,IDX==i));

回答(1 个)

Walter Roberson
Walter Roberson 2012-5-25
You would get that error if "IDX" or "i" are vectors that are larger than the size of the second dimension of the Input matrix.
To phrase that another way, if you have logical indexing with a logical vector that is larger than the dimension being accessed, then you will get the "Index exceeds matrix dimensions" error .

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by