# What are the dimensional requirements for matrix multiplication?

Consider two matrix as ${A}^{m \times n}$ and ${B}^{p \times q}$
Then $A B$ will be a matrix of dimensions $m \times q$ if $n = p$.