python:loadmat - ValueError:不允许使用负尺寸

时间:2018-04-17 13:23:15

标签: python scipy mat

尝试将matlab文件读入python。我正在使用loadmat中的scipy.io函数来阅读它,我正在收回错误ValueError: negative dimensions are not allowed。 我该如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

I found out that this was a binary file (was written with Matlab's fwrite). The solution was saving the file as text, and then loading it in python not using loadmat.