Python, COM and MatLabs Safearray

Mark Hammond mhammond at skippinet.com.au
Wed Jul 10 20:24:40 EDT 2002


Weirdron wrote:
> I'd like to use the COM Interface of MatLab and the functions to transfer
> matrices use the following datatype:
> 
> Pointer SafeArray Real 8 (Flags = 3)
> 
> How do I create this datatype with Python? Any help is greatly appreciated.

You should simply need to pass a tuple or list of Python floats.  Make 
sure that you have run makepy over MatLab's COM type library.

Mark.




More information about the Python-list mailing list