Call python function from Matlab

Adam Przybyla adam at rybnik.pl
Wed Jun 8 03:19:58 EDT 2011


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
Regards
								Adam Przybyla



More information about the Python-list mailing list