A - B
A - B subtracts B from A. A and B must have the same size, unless one is a scalar. A scalar can be subtracted from a matrix of any size.
A |
B |
A - B |
5 |
3 |
2 |
-4.2 |
5.5 |
-9.7 |
[4, 5; 6, 7] |
[1, 1; 5, 5] |
[3, 4; 1, 2] |
[4, 5; 6, 7] |
4 |
[0, 1; 2, 3] |
4 |
[4, 5; 6, 7] |
[0,-1;-2,-3] |