You can do many things, the easiest of which to describe would be to use an array and fill it with nested for loops. As long as you have the same number of data in each row, accessing the data is a simple matter of dividing your array into n parts.
2x4 matrix:
[][][][]
()()()()
array structure:
[][][][]()()()()