Main Content

Stateflow.AtomicBox

Create atomic box

Syntax

atomic_box_new = Stateflow.AtomicBox(parent)

Description

The Stateflow.AtomicBox method is a constructor method for creating an atomic box in a parent chart, state, box, or graphical function. This method returns a handle to the new AtomicBox object.

Arguments

parent

Handle to the object for the parent chart, state, box, or function that contains the new atomic box

Returns

atomic_box_new

Handle to Atomic Box object for newly created atomic box

Examples

If sA is a handle to a State object for the existing state A, the following command creates a new atomic box parented (contained) by state A:

atomic_box_new = Stateflow.AtomicBox(sA)

The new atomic box appears in the upper left corner of state A in the chart. atomic_box_new is a handle to the new Atomic Box object that you can use to rename the atomic box, set its properties, and execute its methods.

Introduced in R2012b