This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

Find Handle Objects and Properties

Find Handle Objects

The findobj method enables you to locate handle objects that meet certain conditions.

function HM = findobj(H,<conditions>) 

The findobj method returns an array of handles matching the conditions specified.

Find Handle Object Properties

The findprop method returns the object for the specified object and property.

function mp = findprop(h,'PropertyName') 

The property can also be a dynamic property created by the addprop method of the dynamicprops class.

Use the returned object to obtain information about the property, such as the settings of any of its attributes. For example, the following statements determine that the setting of the AccountStatus property Dependent attribute is false.

ba = BankAccount(007,50,'open');
mp = findprop(ba,'AccountStatus'); 
ans =

See Also

Related Examples

Was this topic helpful?