a handle object, but does not clear the handle variable from the workspace.
The handle variable is not valid once the handle object has been deleted.
handle can implement a method
delete to perform cleanup tasks just before MATLAB® destroys
an object of the class. MATLAB calls the
handle object when the object is destroyed
when the subclass
delete method meets certain criteria.
For information on implementing a class destructor for a subclass
handle, see Handle Class Destructor.
h— Objects to destroy
Objects to destroy, specified as a handle array.
To learn about attributes of methods, see Method Attributes in the MATLAB Object-Oriented Programming documentation.