A matrix is a rectangular array of numbers, symbols, or expressions, arranged in rows and columns. It is commonly represented by enclosing the elements in brackets or parentheses. The size or dimensions of a matrix are given by the number of rows and columns it contains.