MATLAB: How to find a center of rotation having a set of 3D points

faqrotation center 3d

I have to find the position of a center of rotation for an object. For that I have the X,Y and Z coordinate of my object.
To clarify : The coordinates are from a pendulum oscillating and I have to find the center of the pivotating link
I haven't found a solution yet and I don't really know how to proceed.
Related Question