One-dimensional array, also treated as a "vector", stores data sequentially, and each data is stored and retrieved by an integer representing its "position" in this "row". By representing a "straight", you can say that the data is stored in a single dimension.
The statement will depend on the language, usually:
Dim Vetor(15)
In this example, we created a vector (named "Vector") that contains 16 elements (distinct data), since every vector starts from 0 (zero).
The two-dimensional matrix stores data by means of two integers, representing the "position" of each die in the matrix, as in a Cartesian axis where, for example, points can be considered as integers and positive numbers ( including zeros). Thus, each pair of values indicates a different die. Since they represent two axes, which form a "plane" (x and y in geometry), they represent values in two dimensions.
Usually the statement would be:
Dim Matriz(5; 4)
In this example we created an array (named "Matrix") that contains 30 elements (distinct data), because as 0 (zero) values must be considered, the amount of items this array can store is calculated by: 6 X 5 = 30.