Coupled pendulum matlab programs