[SciPy-User] loadmat: Unknown mat file type, version 49

Pauli Virtanen pav at iki.fi
Wed Aug 27 17:16:46 EDT 2014


27.08.2014, 23:33, Florian Lindner kirjoitti:
> Matthew Brett wrote:
[clip]
>>>   PetscViewerSetFormat(viewer, PETSC_VIEWER_ASCII_MATLAB);
[clip]
>> Sorry - I wasn't sure from what you said whether this is actually a
>> matlab .mat file in matlab 4 / 5 / 6 binary format?

Given that it says PETSC_VIEWER_ASCII_MATLAB, it's probably saved just
as a text file. scipy.io.loadmat loads files in the matlab binary format.





More information about the SciPy-User mailing list