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

4 visualizaciones (últimos 30 días)
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.

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 27 de Jun. de 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).

Más respuestas (0)

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by