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

 채택된 답변

Fangjun Jiang
Fangjun Jiang 2011년 9월 8일

1 개 추천

h=uicontrol('style','text','units','pixels','position',[100,200,30,50])
delete(h);

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Model Predictive Control Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by