Main Content

delete

Delete System object

    Description

    delete(obj) deletes the System object™. Calling delete on the object removes the object, but does not clear object variables.

    example

    Examples

    collapse all

    Call delete to delete an existing System object.

    Create a counter System object named obj.

    obj = counter;

    Delete the created System object using delete.

    delete(obj);

    Note that calling delete on the object removes the object, but does not clear object variables.

    Refer to the example in setup for the class definition of counter.

    Input Arguments

    collapse all

    System object handle used to access properties, states, and methods specific to the object.

    Version History

    Introduced in R2012a