MATLAB Function Reference Previous page   Next Page

Determine if input is object property



isprop(h, 'name') returns logical 1 (true) if the specified name is a property you can use with object h. Otherwise, isprop returns logical 0 (false).


Create an Excel application and test to see if UsableWidth is a property of the object. isprop returns true:

Try the same test on SaveWorkspace, which is a method, and isprop returns false:

See Also

get(COM), inspect, addproperty, deleteproperty, ismethod, isevent, isobject, methods, class

Previous page  isprime isreal Next page

© 1994-2005 The MathWorks, Inc.