You can’t add matrices that have different dimensions. For example:
[ 2 -3 ] can’t be added to [ 1 ]. Adding matrices is easy though, if you do have the correct
[ 7 5 ] [ 0 ]
dimensions. You just add the elements that have corresponding coordinates. Let’s me show you an example:
[ 2 3] + [6 7] = [ 8 10]
[ 4 5] + [8 9] = [12 14]
If you’re subtracting, you just add the negative version of the corresponding elements, like this:
[ 2 3] – [6 7] => [ 2 3] + [ -6 -7] = [ -4 -4 ]
[ 4 5] + [8 9] => [ 4 5] + [ -8 -9] = [ -4 -4 ]
If one of the number’s were negative, I’d just made it positive when I switched the symbols on the second matrix. Simple, right?
Leave a comment