Two matrices $A$ and $B$ are said to be equal if both of the following conditions hold:

When $A$ and $B$ are equal matrices, we write $A=B$. Otherwise, we write $A\ne B$.