Possible Duplicate:
Call Python function from MATLAB
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
How do I call squared(3) from MATLAB workspace/code and get 9?