Execute Callable Python Object

To execute a callable Python® object, use the feval function. For example, if instance obj of a Python class is callable, replace the Python syntax obj(x1, ..., xn) with one of the following MATLAB® statements:

feval(obj,x1, ..., xn)
obj(x1, ..., xn)

See Also