reading v 7.3 mat file in python

后端 未结 8 1772
情书的邮戳
情书的邮戳 2020-12-02 09:16

I am trying to read a matlab file with the following code

import scipy.io
mat = scipy.io.loadmat(\'test.mat\')

and it gives me the followin

8条回答
  •  隐瞒了意图╮
    2020-12-02 09:30

    Per Magu_'s answer on a related thread, check out the package hdf5storage which has convenience functions to read v7.3 matlab mat files; it is as simple as

    import hdf5storage
    mat = hdf5storage.loadmat('test.mat')
    

提交回复
热议问题