MatLab simulation of a trifilar pendulum.