Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
|
|
Get handle to specific objects in a Figure-window ?
Posted:
Jun 18, 1996 6:10 PM
|
|
Hi!
I have a figurewindow where I have created several uicontrols and uimenues.
What I want is to close some of these, lets say eiteher 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 figure-window, but it does not.
Does this function findobj exist in 4.0 or is it only available in later versions ?
If there is some other way of doing this, I would apprieciate if someone could find it in his heart to share it with me.
Thanks in advance,
/Tony Asplund (el91ta@kna.hk-r.se)
|
|
|
|