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