Distance from Center of Mass in a Matrix

5 views (last 30 days)
Kristen
Kristen on 7 Nov 2011
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!

Answers (1)

Image Analyst
Image Analyst on 7 Nov 2011
I imagine bwdist() would be useful for this.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!