Matlab GUI - remove a control object

46 次查看(过去 30 天)
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
h=uicontrol('style','text','units','pixels','position',[100,200,30,50])
delete(h);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by