I am trying to run from Python a script in Matlab that run a Simulink mode, save a variable as Power.mat and read this variable in Python. I am using Python 2.7 on Windows.
I've tried to use the library hdf5storage to read the file:
import hdf5storage
x=hdf5storage.loadmat('Power.mat','r')
but I get the error attached.

Which could be the problem? I have also tried with the library h5py but I get the same error. The file .mat seems not to be corrupted since I open it without any problem in Matlab.
Thanks!
x=hdf5storage.loadmat('Power.mat')should work, although it takes forever to download the packages necessary to test it :)Power.matas a version 7.3 MAT file? Previous versions are not HDF5. From MATLAB:type('Power.mat')will tell you the MAT file version. Usesave('Power.mat', '-v7.3')to specify the version.