I have a .dat file consisting of a string of numbers 1 to 9 that looks like this:
1
2
3
4
5
6
7
8
9
How do I import the data into mathematica so that it has the form {{1,2,3},{4,5,6},{7,8,9}} and I can generate my 3x3 matrix?
I have a .dat file consisting of a string of numbers 1 to 9 that looks like this:
1
2
3
4
5
6
7
8
9
How do I import the data into mathematica so that it has the form {{1,2,3},{4,5,6},{7,8,9}} and I can generate my 3x3 matrix?