Atomic Subchart
R2026bReusable, independent subcomponents in Stateflow chart
Description
An atomic subchart creates a reusable, independent subcomponent inside a Stateflow® chart. Use an atomic subchart to reuse the same state or subchart across multiple charts and models and to isolate generated code for a specific state or subchart. Because atomic subcharts are independent subcomponents, they also speed up simulation after small changes in charts with many states or levels of hierarchy.
To add an atomic subchart to a chart:
In the Stateflow Editor, in the object palette, click the State icon
.Click a location in the chart canvas to place the state.
Type a name for the state.
Click the state. In the toolstrip, in the State tab, click Atomic Subchart.
Properties
Version History
Introduced in R2010b