A = [2, 0; 0, 4; 2, 0; 1, 2] 4x2
B = [-1, 1; 1, -1] 2x2
C = [3, 7, 9; 4, 4, 1] 2x3
D = [20, 11; 20, 12] 2x2
E = [1, 3; 1, 3; 2, 4; 2, 4] 4x2
F = [2, 2; 1, -1] 2x2
G = [20; 4; 2012] 3x1
Matrizen dürfen nur Addiert werden wenn sie vom gleichen Typ sind, d.h. die gleiche Anzahl an Zeilen und Spalten haben.
A + E = [2, 0; 0, 4; 2, 0; 1, 2] + [1, 3; 1, 3; 2, 4; 2, 4] = [3, 3; 1, 7; 4, 4; 3, 6]
B + D = [-1, 1; 1, -1] + [20, 11; 20, 12] = [19, 12; 21, 11]
B + F = [-1, 1; 1, -1] + [2, 2; 1, -1] = [1, 3; 2, -2]
D + F = [20, 11; 20, 12] + [2, 2; 1, -1] = [22, 13; 21, 11]
B + D + F = [-1, 1; 1, -1] + [20, 11; 20, 12] + [2, 2; 1, -1] = [21, 14; 22, 10]