You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Usage: [means,c]=KNMCluster(k,indata)
KNMCluster is an implementation of the K-means clustering algorithm. It takes inputs k and indata. k is the initial guess of the number of clusters.
indata is the aggregate data that you want to put into clusters.
The returned value "means" are the eturned means of the final clusters.
c is a structure with fields Clust1, Clust2, and so on for each of the k means.
Notes: This program makes use of Sara Silva's program shuffle found here on Mathworks. I would like to thank her for this nice little utility, it saved me some time which is always nice.
Tim Felty, fistandantilus1@hotmail.com
Cite As
Timothy Felty (2026). KNMCluster (https://au.mathworks.com/matlabcentral/fileexchange/6291-knmcluster), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired by: shuffle_orderby
General Information
- Version 1.0.0.0 (2.29 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 | Refactored the code to handle more dimensions, also allows for more than 6 dimensions now. |
