definition a matrix is a rectangular array of numbers or other mathematical objects for which operations such as addition and multiplication are defined most commonly a matrix over a field f is a rectangular array of scalars each of which is a member of f most of this article focuses on real and complex matrices that is matrices whose elements are real numbers or complex numbers