find an object with specified property
h = findobj(propertyName, propertyValue)
: :h handle of the found object. :
This routine is currently used to find objects knowing their ‘tag’ property. It returns handle of the first found object which property propertyName is equal to propertyValue . If such an object does not exist, the function returns an empty matrix.
// Create a figure
h=`figure`_();
// Put a text in the figure
`uicontrol`_(h, "style","text", ...
"string","This is a figure", ...
"position",[50 70 100 100], ...
"fontsize",15, ...
"tag","Alabel");
// Find the object which "tag" value is "Alabel"
lab=findobj("tag","Alabel");
`disp`_("The text of the label is """+lab.string+"""");
// Close the figure
`close`_();