Method:

  • Subtraction in matrices occur only if they are of same order.
  • That is if matA is order (m x n) then matB must also be (m x n) for matA-matB to be defined.
  • While finding the resulting matrix the corresponding elements of the input matrices are simply subtracted.