Create centerofmass.m

This is the script