Addition and subtraction

To be able to add or subtract two matrices, they must be of the same size. Matrices of the same dimensions are added by adding corresponding elements.

Similarly, the subtraction of matrices can be done as shown:

Calculate A+B.

Calculate A+C.

It is not possible to calculate A+C because they do not have the same dimensions.