Mathematically, a matrix refers to a two-dimensional data table arranged vertically and horizontally, which originated from a square matrix composed of coefficients and constants of an equation. This concept was first put forward by British mathematician Kelly in19th century.
3 6 9
2 4 8
5 6 7
It is a matrix with 3 rows and 3 columns.