I have generated the following list: http://pastebin.com/vmtRrfcD (updated)
The dimension of the list
is Dimensions[list] = {2726, 2, 2}
.
I would like to have as output a text file with the following content:
112.47146693521316 527.3909029875797 593.8622181250886 130.21649411431008
113.09867034214366 528.2037457434733 594.549992796427 131.24153580175766
113.62546758104739 528.8421134663341 595.3257360633687 132.28388880585862
114.5290948275862 529.334513546798 596.099662399775 133.13342242228157
115.71810769492102 529.4806352981145 596.9433184704769 133.62363194162947
116.61911739355284 528.987502154801 597.4328682170543 134.09286821705427
117.53565962656872 527.8425160697888 597.7618282039504 134.43354769560563
118.62483953786906 527.0335365853658 597.9671970965941 134.98297040759348
...
How can that be done?
I tried this:
Export["list.dat", list, "Table"];
but it produces:
{112.47146693521316, 527.3909029875797} {593.8622181250886, 130.21649411431008}
...
list[[-1]]
is much larger and shaped differently than the other elements:Dimensions@list[[-1]]
returns{2, 151, 2}
. That is why you get{2727, 2}
when you look atlist
. But if you look at the rest of the list,Dimensions@Most@list
gives{2726, 2, 2}
which is why you export like that. If you ignore that last element, you can useExport["list.dat", Flatten /@ Most[list], "Table"];
$\endgroup$Dimensions@coordinates[[-1]]
gives{2,2}
. Now yourExport
line produces what I need. Thank you. $\endgroup$