Matrix in LaTeX. A matrix can be described as a rectangular array of numbers, symbols or expressions that are arranged in rows and columns. A matrix in LaTeX can be generated with the help of a math environment for typesetting matrices. In this tutorial, we will discuss how to generate a matrix and make amendments with regard to the brackets.