compute centroid of a matrix
69 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
how to compute centroid of a matrix? is it possible?
0 Commenti
Risposta accettata
Più risposte (1)
David Lieberman
il 10 Ago 2017
x = sum(sum(matrix).*(1:size(matrix,2)))/sum(sum(matrix))
y is computed similarly
0 Commenti
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!