[SciPy-User] loadmat and figure

Fabrice Silva silva@lma.cnrs-mrs...
Sat Aug 4 11:13:30 CDT 2012

Le samedi 04 août 2012 à 17:48 +0200, x.piter@gmail.com a écrit :
> Hi all.
> Is it possible to load a malab figure using io.loadmat.
> It works well with a matrix saved as mat file, but if I try to load a
> fig file I get the following output:
> scipy.io.loadmat('test2.mat')
> {'a': 'Read error: Cannot read matlab functions', '__version__': '1.0', '__header__': 'MATLAB 5.0 MAT-file, Platform: GLNX86, Created on: Sat Aug  4 16:56:09 2012', '__globals__': []}
> >>> 
> I use scipy shipped with the Debian stable repositories.
> Thanks.

Are not matlab figure supposed to be .fig files ?
The 'a' items of the resulting dictionary seems weird.

I can load (with loadmat, Debian unstable) matlab figure files, but the
trouble is in converting the whole tree stored in the file into some
matplotlib (or similar) instances...

Fabrice Silva

More information about the SciPy-User mailing list