Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Get handle to specific objects in a Figure-window ?
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
@hkr03.hk-r.se

Posts: 2
Registered: 12/7/04
Get handle to specific objects in a Figure-window ?
Posted: Jun 18, 1996 6:10 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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)





Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.