...
If there is a function you are thinking of, MATLAB will likely have libraries that you can access or add ons that can assist. An example might be finding the centre of mass. For more information and on how to use specific functions, go to https://www.mathworks.com/help/matlab
...