Main Content

Stateflow.Box

Create box

Syntax

box_new = Stateflow.Box(parent)

Description

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

Arguments

parent

Handle to an object for the parent chart, state, box, or function of the new box

Returns

box_new

Handle to the Box object for the new box

Examples

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

box_new = Stateflow.Box(sA)

The new box is unnamed and appears in the upper left corner inside state A. box_new is a handle to a Box object for the new box.

Introduced before R2006a