Distance from Center of Mass in a Matrix
5 views (last 30 days)
Show older comments
I have a huge matrix of 0's and 1's. Each 1 represents a vector in a vector field. These vectors are clumped into "clusters" (I have already made the code for this). As the code moves through the individual clusters, I am using the function kmeans to find the centers of mass of each cluster. What I want to do is find the vectors that are >1 standard deviation away from the the center of mass for each cluster. I am pretty new to Matlab, so any suggestions as to how to do this would be much appreciated. Thanks!
0 Comments
Answers (1)
See Also
Categories
Find more on Cluster Analysis and Anomaly Detection in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!