Distance from Center of Mass in a Matrix
Mostrar comentarios más antiguos
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!
Respuestas (1)
Image Analyst
el 7 de Nov. de 2011
0 votos
I imagine bwdist() would be useful for this.
Categorías
Más información sobre Statistics and Machine Learning Toolbox en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!