MATLAB kMeans does not always converge to global minima
问题 I wrote a k-Means clustering algorithm in MATLAB, and I thought I'd try it against MATLABs built in kmeans(X,k) . However, for the very easy four cluster setup (see picture), MATLAB kMeans does not always converge to the optimum solution (left) but to (right). The one I wrote does not always do that either, but should not the built-in function be able to solve such an easy problem, always finding the optimal solution? 回答1: As @Alexandre C. explained, the K-means algorithm depends on the