Skip to content

center_of_mass

  CENTER_OF_MASS Compute center of mass of points

   POS = CENTER_OF_MASS(POINTS, [WEIGHTS])

   Computes the center of mass of a group of points.  Each row should
   contain a separate point in N-space.  If a weights vector is provided,
   then each point is weighted by the corresponding weight.