Getting the data points of each cluster in kmeans.
이전 댓글 표시
After i perform kmeans algorithm of matlab , i get the number of the desired clusters. Now if i want to see the data points of each cluster , how will i proceed. Is there any command in matlab that would help me get that. Any suggestions would be really helpful. Thank You
채택된 답변
추가 답변 (1개)
shahab anjum
2020년 3월 2일
0 개 추천
did we got the data as matrix form as before..? After the kmeans apply. can u help plz
댓글 수: 4
MA-Winlab
2020년 3월 2일
Would you please explain more
Walter Roberson
2020년 3월 2일
No, the first output of kmeans() is a column vector, not a 2D array. Entry #K of the column vector tells you which cluster number the K'th row of the input coordinates is associated with.
There are several examples of plotting the results, above.
shahab anjum
2020년 3월 4일
dear mr MA-Winlab
i have 1000x286 matrix after kmeans i got 1000x286 matrix of clustered data in the form of 1 and 2. i want to get the data back for next work in the shape of 2D matrix 1000x286 same as clustered matrix of kmeans but when i use the above code its gives the data back but not in 2D matrix form but in matrix form with 2 cells. please help me out
shahab anjum
2020년 3월 4일
dear Mr. Walter can u please explain it easy way i really so confused please
카테고리
도움말 센터 및 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!
