delete

Delete object

Syntax

thisObject.delete

Description

The delete method deletes this object from the model. This is true for all but objects of type Root, Machine, Chart, Clipboard, and Editor.

Arguments

thisObject

The object to delete. Can be an object of type State, Box, Function, Truth Table, Annotation, Transition, Junction, Data, Event.

Returns

None

Examples

If a state A is represented by the State object sA, the command sA.delete deletes state A.

Introduced before R2006a