I have a matrix size 8688×100 and I try to use kmeans function to cluster these data points into various number of cluster such as 2, 3, 4 and 5, respectively. However, matlab software show a message "Error using kmeans X must have more rows than the number of clusters.". How can I fix it ?
MATLAB: Does this Error is shown when we use kmeans clustering : X must have more rows than the number of clusters.
kmeans
Best Answer