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?
Copyright © 2021 Jogjafile Inc.
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=True
at the end of the parameters with which you callloadmat
.