如何读取mat文件python?
python中读取mat文件在python中可以使用scipy.io中的函数loadmat()读取mat文件,函数savemat保存文件。1、读取文件如上例:1234567#coding:UTF-8 import scipy.io as scio dataFile = 'E://data.mat'data = scio.loadmat(dataFile)注意,读取出来的data是字典格式,可以通过函数type(data)查看。1print type(data)结果显示1
Copyright © 广州京杭网络科技有限公司 2005-2025 版权所有 粤ICP备16019765号
广州京杭网络科技有限公司 版权所有