Reading matlab structures in mat files does not seem supported at this point.
How to read mat file in python.
Octave has matlab compatible save and load functions.
Dictionary with variable names as keys and loaded matrices as values.
Beginning at release 7 3 of matlab mat files are actually saved using the hdf5 format by default except if you use the vx flag at save time see help save in matlab.
You may have a mat file that you want to read into scipy.
V4 level 1 0 v6 and v7 to 7 2 matfiles are supported.
Reading matlab structures in mat files does not seem supported at this point.
Scipy is a really popular python library used for scientific computing and quite naturally they have a method which lets you read in mat files.
You will need an hdf5 python library to read matlab 7 3 format mat files.
These files can be read in python using for instance the pytables or h5py package.
Coming from the academia the annotations for the dataset was in the mat format.
Reading them in is definitely the easy part.
These files can be read in python using for instance the pytables or h5py package.
Mat scipy io loadmat file mat similarly you can use savemat to export to mat files.
And after that the loadmat is the way to go.
Or you want to pass some variables from scipy numpy into matlab.
Start octave octave at the command line for me.
Beginning at release 7 3 of matlab mat files are actually saved using the hdf5 format by default except if you use the vx flag at save time see in matlab.
Because scipy does not supply one we do not implement the hdf5 7 3 interface here.