When can you multiply one matrix by another matrix?
You can multiply two matrices if, and only if, the number of columns in the first matrix equals the number of rows in the second matrix. (Link on columns vs rows )
In the picture above , the matrices can be multiplied since the number of columns in the 1st one, matrix A, equals the number of rows in the 2nd, matrix B.
Two Matrices that can not be multiplied
Matrix A and B below cannot be multiplied together because the number of columns in A $$ \ne $$ the number of rows in B. In this case, the multiplication of these two matrices is not defined.
Another example of 2 matrices you can not multiply
Matrix C and D below cannot be multiplied.
Can the 2 matrices below be multiplied?
No
Since the number of columns in Matrix A does not equal the number of rows in Matrix B.