Matrix Addition / Subtraction
Two matrices may be added or subtracted if they have the same dimensions. If a matrix
such as A[m][n] is to be added to another matrix such as B[p][q],
then the row dimensions m from A and p from B must be
equal and the column dimensions n from A and q from B
must also be equal. The Fig to the right shows how two corresponding elements of
two matrices are added or subtracted.
Use the following tool to add or subtract two matrices.