MATLAB Function Reference |
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
isprime | isreal |
© 1994-2005 The MathWorks, Inc.