Why does the "isempty" function return "false" when used on a deleted handle object?
I have created an app using App Designer, in which I reference an external class as a property of the app. This class is derived from MATLAB's "handle" class.
Later in my app, I use the "delete" method on a property to remove the assigned class object. I perform this action because I need to execute code that verifies if this specific app property is empty.
However, when I run the app, this verification fails because the "isempty" method, when applied to the deleted property, returns a logical 0 (false). This indicates that the app property is not considered empty even after using the "delete" method on it.
Why does this occur, and how can I resolve this issue?
Accepted Answer
More Answers (0)
Categories
Find more on Properties in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!