A matrix is a collection of numbers arranged into a fixed number of rows and columns. The rows are called horizontal lines and columns are called vertical lines. Each number of a matrix is called elements. It gives the information about matrix and its types with different forms of a matrix.