Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.



Get handle of specific objects in a Figurewindow ?
Posted:
Jun 18, 1996 6:32 PM


Sorry, something went wrong the last time... So you just might have to look at two of these.... Again..sorry..
Hi,
I have a figurewindow where I have created several uicontrols and uimenues.
What I whant is to close some of these, lets say either all uicontrols or just some of them.
A while ago I got a tip of a function called 'findobj'... And should work if I do like this:
fig=gcf; kids=get(fig,'Children'); ctrls=findobj(kids,'type','uicontrols'); delete(ctrls);
if I want to delete all the uicontrols in the figurewindow, but it does not.
Does this function 'findobj' exist in Matlab 4.0 or is it only available in later versions ? (or is it included in some toolbox ?)
If there is some other way of doing this, I would be very grateful if someone could find in his/her heart to share it with me.
Thanks in advance.
/Tony Asplund (el91ta@kna.hkr.se)



