Inmathematics,matrix addition is the operation of adding twomatrices by adding the corresponding entries together.
For avector,, adding two matrices would have the geometric effect of applying each matrix transformation separately onto, then adding the transformed vectors.
Two matrices must have an equal number of rows and columns to be added.[1] In which case, the sum of two matricesA andB will be a matrix which has the same number of rows and columns asA andB. The sum ofA andB, denotedA +B, is computed by adding corresponding elements ofA andB:[2][3]
Similarly, it is also possible to subtract one matrix from another, as long as they have the same dimensions. The difference ofA andB, denotedA −B, is computed by subtracting elements ofB from corresponding elements ofA, and has the same dimensions asA andB. For example: