Read .mat files in Python

后端 未结 8 1759
时光说笑
时光说笑 2020-11-22 09:23

Is it possible to read binary MATLAB .mat files in Python?

I\'ve seen that SciPy has alleged support for reading .mat files, but I\'m unsuccessful with it. I install

8条回答
  •  眼角桃花
    2020-11-22 09:45

    Having MATLAB 2014b or newer installed, the MATLAB engine for Python could be used:

    import matlab.engine
    eng = matlab.engine.start_matlab()
    content = eng.load("example.mat", nargout=1)
    

提交回复
热议问题