The SparkNote section on Ordered Pairs explained
how to represent data as an ordered pair. Another way
to represent data is in a matrix. An
m×n
matrix has
m
rows and
n
columns, and each entry is given a unique name, based on
its row and column:
A =
|
The number of rows and the number of columns are called dimensions.
Here is an example of a
3×2
-dimensional matrix:
A =
|
a 11 = 1
a 12 = 16
a 21 = - 12
a 22 = -![]()
a 31 = 4
a 32 = 0
Two matrices can be added if and only if they have the same number of
rows and the same number of columns. To add two matrices, add their
corresponding entries:
| [A] + [B] | =
+
|
||
=
|
+
|
=
|
||
=
|
Matrix addition is commutative: A + B = B + A . Matrix addition is also associative: (A + B) + C = A + (B + C) .
As in addition, two matrices can be subtracted if and only if they have
the same number of rows and the same number of columns. To subtract one
matrix from another, subtract their corresponding entries:
| [A] - [B] | =
-
|
||
=
|
-
|
=
|
||
=
|