A matrix is a rectangular array of numbers. Each row has the same number of elements, and each column has the same number of elements. Matrices can be classified as: square, identity, zero, column, and so on.