I have code in matlab whose results I would like to use in python code (as a matrix or as a .dat file). Could anyone tell me how this could be done?
2 Answers
NumPy and SciPy can read and write MATLAB .mat files directly using scipy.io.loadmat and scipy.io.savemat.
2 Comments
Chris
I don't think so. According to the
loadmat documentation "we do not implement the HDF5 / 7.3 interface". So I presume not - it's good that you pointed this out.Florian Brucker
There are Python modules for reading HDF5, for example this one.