Matrix formalism of synchrobetatron coupling