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!