Center of Mass solutions

Center of Mass was solved using MATLAB by 2 contestants. Solution sizes: average 1176 bytes (shortest: 1075; longest: 1268).