[SciPy-dev] Saving in MATLAB Level 5 MAT-File Format
Wed Oct 10 10:42:58 CDT 2007
Excellent - thank you. I will have a look and put it into mio soon,
On 10/10/07, Lars Voxen Hansen <firstname.lastname@example.org> wrote:
> I need to save in Matlab Level 5 MAT-File Format. The reson is that
> level 4 only support matrices (2d arrays), I also need to save some
> 3d arrays and load them into matlab.
> I have modified mio5.py in ./scipy/io such that this is posible now
> (see example below). The modified file mio5.py is attached to this
> mail. I have tested this on windows XP and mac OS X, where it works
> for me.
> Is it posible that this modification can be included in scipy?
> Best Regards and thanks for developing scipy
> Lars Voxen Hansen
> import numpy as N
> from scipy import io
> A = N.ones((10,20,30))
> f = open('test.mat','wb')
> MW = io.mio5.MatFile5Writer(f,do_compression=True,unicode_strings=True)
> d = io.load('test.mat','rb')
> Scipy-dev mailing list
More information about the Scipy-dev