MATLAB Function Reference Previous page   Next Page
isprop

Determine if input is object property

Syntax

Description

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).

Examples

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.