What is a Matrix?
A matrix is a two-dimensional array consisting of rows (horizontal)
and columns (vertical). Each element is accessed by an index pair
(row, column) — like an XY coordinate where X = row number, Y =
column number.
For a matrix with 4 rows and 6 columns: indices range from (0,0) to
(3,5). The element at row 2, column 3 is accessed as
matrix[2][3].