FUNCTION REFERENCE

ismethod

True if a name is a method of an object's class.

True if a name is a method of an object's class.

Syntax

tf = ismethod(obj, name)

obj may also be a class name such as 'containers.Map'. For a classdef class it is true for the public methods, the constructor included. Methods of numeric, logical and char values are the supported built-in functions.

Example

ismethod(inline('t'), 'formula')   % true

Differences from MATLAB: Method lists are fixed tables for inline, MException, containers.Map and the built-in value classes.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.