Matlab GUI - remove a control object

Hi all,
I know that the following code:
uicontrol('style','text','units','pixels','position'[10,2,30,5]);
will creat a text object in my GUI form.
My question is how I can remove it? Is there any command that I can use to remove a control object?
Thanks

 Réponse acceptée

Fangjun Jiang
Fangjun Jiang le 8 Sep 2011
h=uicontrol('style','text','units','pixels','position',[100,200,30,50])
delete(h);

Plus de réponses (0)

Catégories

En savoir plus sur Model Predictive Control Toolbox dans Centre d'aide et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by