Access .mat file containing matlab classes in python

Unfortunately, SciPy does not support mat files that contain new-style class objects (those defined with classdef), nor does any third-party mat-file reader as far as I’m aware. That __function_workspace__ element in the returned mat dictionary contains the information you’re after in some undocumented and as-yet-not-reverse-engineered way. The easiest solution is to convert your custom classes … Read more

MATLAB: Differences between .mat versions

Version 7.3 of MAT-files uses HDF5 format, this format has a significant storage overhead to describe the contents of the file, especially so for complex nested cellarrays and structures. Its main advantage over previous versions of MAT-files is that it allows storing data larger than 2GB on 64-bit systems. Note that both v7 and v7.3 … Read more