Matrix (mathematics) - Wikipedia An m × n matrix: the m rows are horizontal and the n columns are vertical Each element of a matrix is often denoted by a variable with two subscripts For example, a2,1 represents the element at the second row and first column of the matrix In mathematics, a matrix (pl : matrices) is a rectangular array of numbers or other mathematical objects with elements or entries arranged in rows and