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!
You can use scipy.io to exchange data between Python and Matlab. There are functions named savemat and loadmat for this purpose.
Something like this should work:
For reference, http://docs.scipy.org/doc/scipy/reference/generated/scipy.io.loadmat.html