Perform matrix addition and subtraction operations for linear algebra and mathematical analysis
Enter two matrices of the same dimensions to compute their sum or difference. Matrix operations are fundamental in linear algebra, engineering, and data science.
Both matrices must have the same dimensions
Both matrices must have the same dimensions
Both matrices must have the same dimensions
Click on any example to load it into the calculator
Basic addition of two 2×2 matrices
Dimensions: 2×2
Matrix A: [1, 2, 3, 4]
Matrix B: [5, 6, 7, 8]
Subtraction of two 3×3 matrices
Dimensions: 3×3
Matrix A: [9, 8, 7, 6, 5, 4, 3, 2, 1]
Matrix B: [1, 2, 3, 4, 5, 6, 7, 8, 9]
Adding identity matrix to another matrix
Dimensions: 3×3
Matrix A: [1, 0, 0, 0, 1, 0, 0, 0, 1]
Matrix B: [2, 3, 4, 5, 6, 7, 8, 9, 10]
Matrix operations with decimal values
Dimensions: 2×3
Matrix A: [1.5, 2.7, 3.2, 4.1, 5.8, 6.3]
Matrix B: [0.5, 1.3, 2.8, 3.9, 4.2, 5.7]