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
MathWorks Support Team 2009년 6월 27일
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