Call python function from Matlab

nazmul.islam at gmail.com nazmul.islam at gmail.com
Wed Jun 8 01:12:13 EDT 2011


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.

Nazmul



More information about the Python-list mailing list