Trying to read a matlab file into python. I am using the function loadmat
from scipy.io
to read it, and I'm getting back the error ValueError: negative dimensions are not allowed
.
How can I fix this issue?
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
.