如何加载.mat文件并将其转换为numpy 2D数组? [英] How to load and convert .mat file into numpy 2D array?

查看:622
本文介绍了如何加载.mat文件并将其转换为numpy 2D数组?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在mat文件中有一个数据(观测和功能),我想将其加载到numpy 2D数组中.我不想先将其转换为csv,然后再将csv加载到numpy中.

I have a data in mat file (observations and features) and i want to load it into numpy 2D array. I dont want to convert it into csv first and then load csv into numpy.

推荐答案

使用文档应该足以帮助您入门,但是请务必阅读注释.

The docs should be sufficient to get you going, but make sure to read the notes.

还有 io-tutorial 并附有示例.

这篇关于如何加载.mat文件并将其转换为numpy 2D数组?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆