【发布时间】:2017-07-25 05:44:50
【问题描述】:
我正在尝试使用 scipy 读取 matlab 文件
import scipy.io as sio
data = sio.loadmat(filepath)
但我得到了错误
ValueError: Did not fully consume compressed contents of an miCOMPRESSED element. This can indicate that the .mat file is corrupted.
在 Matlab 中我可以毫无问题地打开这个文件。我也尝试再次保存它,但没有任何改变...... 你能帮帮我吗?
这里:https://drive.google.com/drive/folders/0B3vXKJ_zYaCJanZfOUVIcGJyR0E 您可以找到以相同方式保存的2个文件..
我可以打开 part_000,但不能打开 part_001.... 为什么? :(
【问题讨论】:
-
你使用的是什么matlab文件格式版本?尝试不同的、更早的。
-
是一个普通的mat文件,使用matlab命令保存:save(filename)
-
在 550 个文件中我不能只打开一个文件....它们被一起保存在一个循环中
-
所以它适用于许多文件,只是不是这个?如果不访问问题文件,很难提供帮助。
-
您可以从这里下载数据:drive.google.com/drive/folders/…