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

9 views (last 30 days)
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.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
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).

More Answers (0)

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!