Matrices \(A,B\in M_{m\times n}(\mathbb{K})\) are equal or same if every \((i,j)\)-th entry of \(A\) is equal to (same as) the \((i,j)\)-th entry of \(B\) for every \(1\leq i\leq m\) and for every \(1\leq j\leq n\text{.}\) That is, if
\begin{equation*}
A=\begin{pmatrix}a_{11}\amp a_{12}\amp\cdots\amp a_{1n}\\a_{21}\amp a_{22}\amp\cdots\amp a_{2n}\\\vdots\amp\vdots\amp\ddots\amp\vdots\\a_{m1}\amp a_{m2}\amp\cdots\amp a_{mn}\end{pmatrix}\in M_{m\times n}(\mathbb{K})\quad\text{and}\quad B=\begin{pmatrix}b_{11}\amp b_{12}\amp\cdots\amp b_{1n}\\b_{21}\amp b_{22}\amp\cdots\amp b_{2n}\\\vdots\amp\vdots\amp\ddots\amp\vdots\\b_{m1}\amp b_{m2}\amp\cdots\amp b_{mn}\end{pmatrix}\in M_{m\times n}(\mathbb{K})
\end{equation*}
then,
\begin{equation*}
A=B\quad\text{if and only if}\quad a_{ij}=b_{ij}\,\text{for all}\,1\leq i\leq m\,\text{and}\,1\leq j\leq n.
\end{equation*}
Matrices \(A,B\in M_{m\times n}(\mathbb{K})\) are said to be not equal, and written as \(A\neq B\text{,}\) if there is at least one \(i\) and at least one \(j\) such that \((i,j)\)-th entry of \(A\text{,}\) \(a_{ij}\) and \((i,j)\)-th entry of \(B\text{,}\) \(b_{ij}\) are different, i.e., \(a_{ij}\neq b_{ij}\) (for some \(i\) and some \(j\)).