[SciPy-user] Usage of savemat

Pearu Peterson pearu at scipy.org
Fri Nov 7 03:33:52 EST 2003



On Fri, 7 Nov 2003, Nils Wagner wrote:

> Hi all, 
>  
> I am sorry, but I still have some trouble with savemat. 
> Please reply. 
>  
> Python 2.3+ (#1, Sep 23 2003, 23:07:16) 
> [GCC 3.3.1 (SuSE Linux)] on linux2 
> Type "help", "copyright", "credits" or "license" for more information. 
> >>> from scipy import * 
> >>> from RandomArray import * 
> >>> A = rand(3,3) 
> >>> B ={1:A} 
          ^^^ see io.savemat.__doc__

So, try

>>> B ={'A':A}
...

Pearu



More information about the SciPy-User mailing list