Why do I get this message : Error using kmeans ---X must have more rows than the number of clusters.
이전 댓글 표시
Hello,
When I run a collegue script, i get this error message: Error using kmeans ---X must have more rows than the number of clusters. What are my option to solve this problem?
Thank you.
Andree
채택된 답변
추가 답변 (3개)
Andree-Sylvie Carbonneau
2014년 1월 15일
댓글 수: 2
José-Luis
2014년 1월 15일
size(ab)?
Andree-Sylvie Carbonneau
2014년 1월 16일
편집: Andree-Sylvie Carbonneau
2014년 1월 16일
Thulfiqar Hussein
2017년 3월 22일
0 개 추천
the value (X/K) should be integer number without fractions. for example if you have 10 objects and cluster them to 3 groups you will get 10/3 = 3.3 and this error will pop up, but if you cluster them to 2 or 5 groups there will be no problem.
Laura Hensel
2020년 2월 29일
0 개 추천
You should also check if you have any missing values in your matrix
카테고리
도움말 센터 및 File Exchange에서 k-Means and k-Medoids Clustering에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!