Really sorry if this question is a duplicate. I couldn't find exactly what I was looking for.
Here is a list I have:
{{{0. + 0.1875 I, 0. + 0.105469 I, 0. + 0.03125 I, 0. + 0.00390625 I,
0. + 0. I, 0. + 0. I, 0. + 0. I, 0. + 0. I}, {0, 0, 0, 0, 0, 0, 0,
0}, {0, 0, 0, 0, 0, 0, 0, 0}}, {{0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0,
0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0}}, {{0, 0, 0, 0, 0, 0, 0,
0}, {0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0}}}
Here it is again in MatrixForm
:
I would like to join all triplets of sub arrays in each colums so as to have only three long columns an end up with a 2-dimensional array.
Can't seem to find a way using Flatten. Any help would be awesome!
Transpose@(Join @@@ Table[list[[i]], {i, 3}]
) $\endgroup$Flatten /@ data // Transpose
, there could potentially be even simpler ways. $\endgroup$