A matrix is a rectangular array of numbers or expressions. Matrices can represent data in tables and make calculations easier. A matrix has rows and columns that define its size. A vector is a matrix with only one row or column. Special types of matrices include square, triangular, diagonal, and identity matrices. Two matrices are equal if they have the same size and corresponding elements are equal.