You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
k-means is a decent clustering algorithm, however it requires the specification of the number of clusters, and is stochastic.
This function takes a matrix as input, as well as the maximum number of clusters, the cutoff to determine the best model (the fraction of variance explained), and makes sure the results are stable by repeating a number of times specified by the user.
The above method is called the Elbow method.
Cite As
Sebastien De Landtsheer (2026). kmeans_opt (https://www.mathworks.com/matlabcentral/fileexchange/65823-kmeans_opt), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.1 (1.86 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
