Main Content

Stateflow.AtomicSubchart

Create atomic subchart

Syntax

atomic_subchart_new = Stateflow.AtomicSubchart(parent)

Description

The Stateflow.AtomicSubchart method is a constructor method for creating an atomic subchart in a parent chart, state, or box. This method returns a handle to the new AtomicSubchart object. For more information on atomic subcharts, see Create Reusable Subcomponents by Using Atomic Subcharts.

Arguments

parent

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

Returns

atomic_subchart_new

Handle to Atomic Subchart object for newly created atomic subchart

Examples

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

atomic_subchart_new = Stateflow.AtomicSubchart(sA)

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

Introduced in R2010b