Interactive demonstration of matrix addition, subtraction, and multiplication
Two matrices can be added only if they have the same dimensions. The sum is obtained by adding corresponding elements.
Similar to addition, matrices must have the same dimensions. The difference is obtained by subtracting corresponding elements.
The number of columns in the first matrix must equal the number of rows in the second. Each element is the dot product of a row and column.