Currently the only way to call classdef object methods is obj.method () syntax. Implementing dispatch call as method(obj) has a little overhead on all function calls. Because a virtual function should be called on the first argument to check whether it has an object or not. If it is an object the name of the function is passed to the interpreter to find the function and call it. This second overhead is exclusive to calling classdef method dispatch.
Currently the only way to call classdef object methods is obj.method () syntax. Implementing dispatch call as method(obj) has a little overhead on all function calls. Because a virtual function should be called on the first argument to check whether it has an object or not. If it is an object the name of the function is passed to the interpreter to find the function and call it. This second overhead is exclusive to calling classdef method dispatch.