Correct documentation: add \end{matrix}