[SciPy-user] loadmat behaviour

David Cournapeau david at ar.media.kyoto-u.ac.jp
Wed Oct 18 04:12:44 CDT 2006


Carlos Medrano wrote:
>
> Anyway, you give me a valuable information. If this is caused by the way matlab 
> saves the data, this means I was not doing anything wrong. So perhaps the best 
> way to solve this kind of problems is to use some other way of saving data in 
> matlab (fprintf and friends).
>
>   
A better and easier solution would be to use the hd5 support available 
in recent matlabs: files exported this way can be imported by pytables, 
and exported back. This is what I am using to plumb matlab and python 
code, when I don't have (yet) a scipy replacement for some matlab codes.

hdf5 file format is an established standard, with a C library available 
under a liberal license, which means many different applications can use it.

cheers,

David


More information about the SciPy-user mailing list