| MATLAB Function Reference | ![]() |
Determine if input is object method
Syntax
Description
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).
Examples
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
| ismember | isnan | ![]() |
© 1994-2005 The MathWorks, Inc.