A Matlab program, simulating the kinematics of a four-bar mechanism.