It seems that I can only load everything as uint8 type, just with the following two lines,
import scipy.io
X1=scipy.io.loadmat('one.mat')
all double precision numbers get transformed. What should I do?
It seems that I can only load everything as uint8 type, just with the following two lines,
import scipy.io
X1=scipy.io.loadmat('one.mat')
all double precision numbers get transformed. What should I do?
What level matfile are you trying to read? According to the docs,
For the supported levels, variables should be reloaded with the dtype with which they were saved; if you'd rather load them as matlab would, add
mat_dtype=Trueat the end of the parameters with which you callloadmat.