To add or subtract matrices, they must have the same dimensions. When adding, corresponding entries are added, while when subtracting, negatives are subtracted correctly. Algebraic expressions within matrices can also be added or subtracted provided the matrices have matching dimensions, otherwise the result is undefined.