Skip to Main Content Skip to Search
Product Documentation

Stateflow.Box - Constructor for creating box

Syntax

box_new = Stateflow.Box(parent)

Description

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

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.

  


Free Stateflow Interactive Kit

Learn how engineers use Stateflow to model state machines in their Simulink models.


Get free kit

Trials Available

Try the latest version of Stateflow.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS