I am trying to call an object method when I have the object instance, the method name, and the argument value(s) as variables. If my object were a COM object, I could use invoke(). Is there something similar to this for user-defined classes? I'm trying to avoid using eval().
MATLAB: Calling an object method where the name of the method is a varible
MATLABobject-oriented
Related Question
- How to define a shared SetMethod for multiple dynamic properties
- How to pass a class name as argument to a function
- Object property as function argument
- How to create an object using class name
- How to expose the methods of the MATLAB object-oriented class through a C++ shared library with the MATLAB Compiler
- Is MATLAB 6.1 (R12.1) for UNIX or LINUX unable to recognize the case-sensitive object created in Windows
Best Answer