k-means clustering algorithm

Version 1.0.0.0 (3.76 KB) by Craig
Performs one step of the k-means clustering algorithm
1.7K Downloads
Updated 16 Jul 2012

View License

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://in.mathworks.com/matlabcentral/fileexchange/37503-k-means-clustering-algorithm), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Cluster Analysis and Anomaly Detection in Help Center and MATLAB Answers
Version Published Release Notes
1.0.0.0