Skip to Main Content Skip to Search
Product Documentation

Stateflow.AtomicSubchart - Constructor for creating atomic subchart

Syntax

atomic_subchart_new = Stateflow.AtomicSubchart(parent)

Description

The Stateflow.AtomicSubchart method is a constructor method for creating an atomic subchart for a parent chart or state. This method returns a handle to the new Atomic Subchart object.

Arguments

parent

Handle to the object for the parent chart or state 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.

  


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