在Python中读取.mat文件 [英] Read .mat files in Python
本文介绍了在Python中读取.mat文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
(我已经看到 scipy 声称支持读取.mat文件,但是我没有成功,我安装了
scipy
0.7.0版本,我找不到 loadmat()
method)
解决方案
忘记导入io ...
import scipy.io
mat = scipy.io.loadmat('file。 mat')
Does anyone have successful experience reading 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 installed scipy
version 0.7.0, and I can't find the loadmat()
method)
解决方案
Silly me. Forgot to import io...
import scipy.io
mat = scipy.io.loadmat('file.mat')
这篇关于在Python中读取.mat文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文