Passing numpy arrays to matlab

Pauli Virtanen pauli.virtanen at iki.fi
Tue Nov 7 13:59:45 EST 2006


Hi all,

ti, 2006-11-07 kello 11:23 +0900, David Cournapeau kirjoitti:
>     I am trying to find a nice way to communicate between matlab and 
> python. I am aware of pymat, which does that, but the code is 
> deprecated, and I thing basing the code on ctypes would lead to much 
> more robust code.
> 
>     http://claymore.engineer.gvsu.edu/%7Esteriana/Software/pymat.html
> 
> I have a really simple prototype which can send and get back data from 
> matlab, but I was wondering if it would be possible to use a scheme 
> similar to ctypes instead of having to convert it by hand.

A while ago I wrote a mex extension to embed the Python interpreter
inside Matlab:

	http://www.iki.fi/pav/pythoncall

I guess it's something like an inverse of pymat :)

But I guess this is not really what you are looking for, since at
present it just does a memory copy when passing arrays between Matlab
and Python. Though, shared arrays might be just possible to implement if
memory management is done carefully.

BR,

	Pauli Virtanen

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digitaalisesti allekirjoitettu viestin osa
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20061107/2d09360e/attachment.sig>
-------------- next part --------------
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
-------------- next part --------------
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion


More information about the NumPy-Discussion mailing list