k-means++

Cluster multivariate data using the k-means++ algorithm.

Download
Download

You are now following this Submission

Cite As

Laurent S (2026). k-means++ (https://www.mathworks.com/matlabcentral/fileexchange/28804-k-means), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: Kmeans Clustering

Inspired: kmeans_varpar(X,k), Sparsified K-Means

Categories

Find more on Statistics and Machine Learning Toolbox in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.7.0

Fixed bug with 1D datasets (thanks Xiaobo Li).

Download
1.6.0

Improved handling of overclustering (thanks Sid S) and added a screenshot.

Download
1.5.0

Small bugfix.

Download
1.4.0

Removed dependency on randi for R2008a or lower (thanks Cassie).

Download
1.3.0

Even faster, even less code and also fixed a few small bugs.

Download
1.0.0

Download