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

5 Ansichten (letzte 30 Tage)
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.

Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 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).

Weitere Antworten (0)

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by