MATLAB Function Reference Previous page   Next Page

Determine if input is object method



ismethod(h, 'name') returns a logical 1 (true) if the specified name is a method that you can call on object h. Otherwise, ismethod returns logical 0 (false).


Create an Excel application and test to see if SaveWorkspace is a method of the object. ismethod returns true:

Try the same test on UsableWidth, which is a property. isevent returns false:

See Also

methods, methodsview, isprop, isevent, isobject, class, invoke

Previous page  ismember isnan Next page

© 1994-2005 The MathWorks, Inc.