如何将matlab中的mat矩阵文件在python中读取出来
作者:小教学发布时间:2023-09-30分类:程序开发学习浏览:94
导读:先安装hdf5storage这个包pip3installhdf5storage然后在当前目录下放入要读取的mat文件 #将matlab中的mat文件读取出来im...
先安装hdf5storage这个包
pip3 install hdf5storage
然后在当前目录下放入要读取的mat文件
# 将matlab中的mat文件读取出来
import hdf5storage
data = hdf5storage.loadmat('inputWeights.mat')
print(data['inputWeights'])
- 程序开发学习排行
- 最近发表