Task

Invoke an object method where the name of the method to be invoked can be generated at run time.



Related tasks

 Respond to an unknown method call.
 Runtime evaluation


 
  funName = 'foo';   % generate function name
  feval (funNAME, ...)  % evaluation function with optional parameters
 
  funName = 'a=atan(pi)';   % generate function name
  eval (funName, 'printf(''Error\n'')')
 