Please use HDF reader for matlab v7.3 files
I found that the problem is not the same mat file, some may be open, and some can not be opened, can not be used h5py try:
problem .mat python file read directly on the code:
data = scipy.io.loadmat ( 'cebi.mat') # read the file mat
print (data.keys ()) # mat file view all variables
#Print (Data [ '__ header__'])
Print (Data [ ' the DATA '])
User Data = [' the DATA ']
user.dtype # view type
user.dtype.names # view attribute names
being given the following problems:
NotImplementedError: Please use HDF reader for matlab v7.3 files
Tip Use hdf read, then naturally go to Baidu, just encountered can be solved click the link to open
Then changed so that you can read in the data:
h5py Import
Data = h5py.File ( 'cebi.mat', 'R & lt')
X = List (data.keys ())
#data [X [. 1]]
# Data W = [X [. 1]] [ 'Wave' ]
www = Data [Data [X [. 1]] [ 'Wave'] [0] [0]]. value
resulting array of float type is www