Atomic Box
R2026bEncapsulate functions in separate namespace
Description
An atomic box encapsulates graphical, truth table, MATLAB®, and Simulink® functions in a separate namespace inside a Stateflow® chart. Use an atomic box to reuse functions across multiple charts and models and to isolate generated code for a specific function. Because atomic boxes are independent subcomponents, they also speed up simulation after small changes in charts with many states or levels of hierarchy.
To add an atomic box to a chart:
In the Stateflow Editor, in the object palette, click the Box icon
.Click a location in the chart canvas to place the atomic box.
Type a name for the box.
Click the box. In the toolstrip, in the Box tab, click Atomic Subchart.
Properties
Version History
Introduced in R2012b