compute centroid of a matrix
75 views (last 30 days)
Show older comments
how to compute centroid of a matrix? is it possible?
0 Comments
Accepted Answer
More Answers (1)
David Lieberman
on 10 Aug 2017
x = sum(sum(matrix).*(1:size(matrix,2)))/sum(sum(matrix))
y is computed similarly
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!