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. Matrix can be real and complex matrices, that is, matrices whose elements are respectively real numbers or complex numbers