compute centroid of a matrix
69 次查看(过去 30 天)
显示 更早的评论
how to compute centroid of a matrix? is it possible?
0 个评论
采纳的回答
更多回答(1 个)
David Lieberman
2017-8-10
x = sum(sum(matrix).*(1:size(matrix,2)))/sum(sum(matrix))
y is computed similarly
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!