One-dimensional matrix, also treated as "vector", stores data sequentially, and each data is stored and retrieved by means of an integer representing its "position" in this "row". By representing a "straight line", it can be said that the data is stored in a single dimension.
The statement will depend on the language, usually:
Dim Vetor(15)
In this example, a vector (named "Vector") was created that has 16 elements (distinct data), because every vector starts from 0 (zero).
The two-dimensional matrix stores data by means of two integers, which represent the "position" of each data in the matrix, as in a Cartesian axis where, for example, one can consider points to values of integers and positives (including zeros). Thus, each pair of values indicates a distinct datum. As they represent two axes, which form a "plane" (x and y in geometry), it represents values in two dimensions.
Usually the statement would be:
Dim Matriz(5; 4)
In this example, a matrix (named "Matrix") was created that has 30 elements (distinct data), because since the values 0 (zero) must be considered, the amount of items that this matrix can store is calculated by: 6 X 5 = 30.
You do not ask this in your question. The answer answers what has been asked. If you need more details, put this clearly in your question.
– Leonel Sanches da Silva