Matlab stores a data column. So, from your example (suppose it's a 3x2x3 matrix), Matlab will save it as the first, second and third columns from the first βsliceβ, followed by the first, second third columns from the second slice, and so on.
2 4 3 5 6 8 6 1 7 4 3 3 6 8 6 9 7 0
So, you can write data from this list from python (I don't know how), and then read it in matlab. Then you can reshape put it back into the 3x2x3 matrix and you will keep the correct order.
user564376
source share