Call python function from Matlab

Thomas Rachel nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915 at spamschutz.glglgl.de
Wed Jun 8 03:33:19 EDT 2011


Am 08.06.2011 09:19 schrieb Adam Przybyla:
> nazmul.islam at gmail.com<nazmul.islam at gmail.com>  wrote:
>> I need to call a python function from a Matlab environment. Is it
>> possible?
>>
>> Let's assume, I have the following python code:
>>
>> def squared(x):
>>     y = x * x
>>     return y
>>
>> I want to call squared(3) from Matlab workspace/code and get 9.
>>
>> Thanks for your feedback.
> 	... try this: http://pypi.python.org/pypi/pymatlab

Thank you for the link, looks interesting for me.

But AFAICT, the OP wants the other direction.


Thomas



More information about the Python-list mailing list