Precedence Order of Methods and Functions

If a Python® class defines a method with the same name as a MATLAB® converter method for Python types, MATLAB calls the Python method. This means you cannot call the MATLAB converter method on an object of that class.

For example, if a Python class defines a char method, the following statement calls the Python method.

char(obj)

To use the MATLAB char function, type:

char(py.str(obj))