Why am I unable to delete uitable or uitree objects with the DELETE function?

4 次查看(过去 30 天)
I have used the UITABLE and UITREE functions to create the corresponding objects in a figure, in MATLAB 7.0 (R14). I am unable to use the DELETE function to delete the objects. If I use DELETE, the objects still appear in the figure window. For example:
h = uitable;
delete(h);
The above code does not remove the object from the figure. However, the DELETE function can successfully delete other graphics objects, like uicontrols.

采纳的回答

MathWorks Support Team
We have verified that there is a bug in MATLAB 7.0 (R14) in the way that the DELETE function handles uitable and uitree objects.
To work around this issue, specify the second output argument as the handle to the container for the object (this output argument is undocumented), and use DELETE on the container :
[h, c] = uitable;
delete(c)
This problem has been fixed in MATLAB 7.0.1 (R14sp1).

更多回答(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