You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
No a priori knowledge of the number of bins, or the distance between bins, is required. This approach relies on the relative difference between (sorted) elements of the data, and works well when the difference between clusters is bigger than the difference between elements within a cluster.
SYNTAX:
CLUSTERS = clusterData(DATA);
Operates column-by-column. An optional input allows you to specify the sensitivity of each columnwise clustering. Additional outputs also specify the indices of the cluster each row of data, and the bounds used to separate them.
Each column may have a different interpretation. For instance, an Mx4 array of data may represent x-data in the first column, y- in the second, z- in the third, and t- in the fourth. Returns a Px1 cell array, CLUSTERS, specifying the data points in each of the P clusters detected.
The final clustering utilizes all columns.
NOTE: This submission incorporates, expands, and replaces my earlier submission ezCluster.
Cite As
Brett Shoelson (2026). clusterData (https://in.mathworks.com/matlabcentral/fileexchange/35014-clusterdata), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: Data clustering using Bat Algorithm
General Information
- Version 1.1.0.1 (3.43 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
