Add Two Matrices

To compute the sum \( A + B \), both matrices must have the same dimensions.

Matrix addition is done by adding corresponding entries: \[ (A + B)_{ij} = a_{ij} + b_{ij} \]

Matrix A

Rows: Columns:

Matrix B

Rows: Columns: