美文网首页
python 读取.mat中的数据

python 读取.mat中的数据

作者: ClarenceHoo | 来源:发表于2017-12-27 16:20 被阅读0次

import scipy.io as sio
mat = 'E:/model.mat'
data = sio.loadmat(mat)
print(data)
如果输出中有array,假设输出如下:
...... ,'input': array(......),......
那么
data['input']即为所需要读取的数据

相关文章

网友评论

      本文标题:python 读取.mat中的数据

      本文链接:https://www.haomeiwen.com/subject/mmvugxtx.html