reading v 7.3 mat file in python

后端 未结 8 1765
情书的邮戳
情书的邮戳 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:45

    I've created a small library to load MATLAB 7.3 files:

    pip install mat73
    

    To load a .mat 7.3 into Python as a dictionary:

    import mat73
    data_dict = mat73.loadmat('data.mat')
    

    simple as that!

提交回复
热议问题