k-means clustering algorithm

Performs one step of the k-means clustering algorithm

You are now following this Submission

Input image must be a nxm binary image and the initial guess of where the averages of the clusters are must be a px2 array with each row representing the row and column value of each initial cluster average guess.

An example m file is provided to illustrate its use.

Cite As

Craig (2026). k-means clustering algorithm (https://www.mathworks.com/matlabcentral/fileexchange/37503-k-means-clustering-algorithm), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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