If I create a table of this kind:
(m1 = Table[{RandomInteger[], RandomInteger[{1, 5}, {3}]}, {i, 1,
5}]) // MatrixForm
which looks like
I know how to pick the first column of the second column:
m1[[All, 2, 1]] // MatrixForm
which looks like
But if I first export and then again import the matrix m1
Export["data.dat", m1, "Data"]
m2 = Import["data.dat", "Data"]
I do not get the same result as previously
m2[[All, 2, 1]] // MatrixForm
which looks like
What is wrong?
Export["data.m",m1]
these are "native" mathematica formats and will safely preserve whatever expression you export. If you really want to use the "Data" format for some reason that will take a bit of work to read it back in (clarify if that's what you need.. ) $\endgroup$