Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

delete

Class: handle

Delete handle object

Syntax

delete(h)

Description

delete(h) deletes 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.

Subclasses of handle can implement a method named delete to perform cleanup tasks just before MATLAB® destroys an object of the class. MATLAB calls the delete method of any 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 of handle, see Handle Class Destructor.

Input Arguments

expand all

Objects to destroy, specified as a handle array.

Attributes

Accesspublic

To learn about attributes of methods, see Method Attributes.

Was this topic helpful?