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!