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?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Properties finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!