A matrix is a collection of numbers ordered row by row and column by column. Matrix elements must be contained in parentheses or brackets. 2. How to add two matrices? Matrices of the same size can be added by calculating the sum of elements that have the same address. To combine two matrices, add the appropriate elements, and insert the resulting total in the corresponding position in the matrix. 3.