I have a
.npy file which is created by numpy of Python as below:-
import numpy as np x = np.arange(60) y=x.reshape(3,4,5) np.save("C:\\Users\\H42\\Desktop\\matrix001.npy", y)
I tried to read this in Mathematica, and thus I used:-
data = BinaryReadList["C:\Users\H42\Desktop\matrix001.npy"]; data
However, the output is not what I want. The original matrix is just integers from 0 to 59, with size 3x4x5. But the matrix that I got in Mathematica is totally different, with size 368... Why and what should I do?