Does anyone know a fast way to compute the center of gravity of a matrix with Labtalk ?
For now, I'm doing it the hard way: Sum(Xi.Zi)/Sum(Zi) and Sum(Yi.Zi)/Sum(Zi) but it is something I want to perform MANY times and looping through rows and cols is way too slow.