This is a tool for K-means clustering. After trying several different ways to program, I got the conclusion that using simple loops to perform distance calculation and comparison is most efficient and accurate because of the JIT acceleration in MATLAB.
The code is very simple and well documented, hence is suitable for beginners to learn k-means clustering algorithm.
Numerical comparisons show that this tool could be several times faster than kmeans in Statistics Toolbox.
Yi Cao (2023). Efficient K-Means Clustering using JIT (https://www.mathworks.com/matlabcentral/fileexchange/19344-efficient-k-means-clustering-using-jit), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired: Patch color selector
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!