[SciPy-User] saving a dictionary to a MATLAB cell format

Mohammad Abdollahi m.abdollahi at gmail.com
Sun Feb 20 14:33:56 EST 2011


Thanks a lot Robin. That was extremely helpful !

Cheers
Mohammad

On Sun, Feb 20, 2011 at 8:22 PM, Robin <robince at gmail.com> wrote:

> scipy.io.loadmat uses numpy object arrays as the python equivalent for
> Matlab cell arrays:
> http://docs.scipy.org/doc/scipy/reference/tutorial/io.html
>
> So you would have to convert your dictionary to an object array.
>
> Cheers
>
> Robin
>
> On Sun, Feb 20, 2011 at 8:11 PM, Mohammad Abdollahi
> <m.abdollahi at gmail.com> wrote:
> > Dear List,
> >
> > I am trying to save a 3 dimensional dictionary of matrices to  MATLAB
> cell
> > structure but I cant do it. does anybody know if it is possible ? I mean
> of
> > course I can save each component of the originaal dictionary to a MATLAB
> > matrix, but when I try to save the whole dictionary I just get an empty
> > file.
> >
> > Thanks
> >
> >
> > _______________________________________________
> > SciPy-User mailing list
> > SciPy-User at scipy.org
> > http://mail.scipy.org/mailman/listinfo/scipy-user
> >
> >
> _______________________________________________
> SciPy-User mailing list
> SciPy-User at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20110220/29b85a29/attachment.html>


More information about the SciPy-User mailing list