| Products & Services | Industries | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Stateflow |
| Contents | Index |
| Learn more about Stateflow |
| On this page… |
|---|
History junctions extend the ability of charts and states by recording the activity of substates inside superstates. Use a history junction in a chart or superstate to indicate that its last active substate becomes active when the chart or superstate becomes active.
To create a junction, do the following:
In the Stateflow Editor toolbar,
click the History Junction icon
.
Move your pointer into the Stateflow Editor.
The pointer takes on the shape of a junction.
Click to place a history junction inside the state whose last active substate it records.
To create multiple history junctions, do the following:
In the Stateflow Editor toolbar, double-click the History Junction icon.
Click anywhere in the drawing area to place a history junction.
Move to and click another location to create an additional history junction.
Click the History Junction icon or press the Esc key to cancel the operation.
To move a history junction to a new location, click and drag it to the new position.
To change the size of junctions, do the following:
Place your pointer over one of the junctions and right-click.
In the resulting submenu, place your pointer over Junction Size.
A menu of junction sizes appears.
To edit the properties for a junction, do the following:
In the resulting submenu, select Properties.
The History Junction dialog box appears as shown.

Edit the fields in the properties dialog box, which are described in the following table:
Field | Description |
|---|---|
Parent of this history junction; read-only; click the hypertext link to bring the parent to the foreground. | |
Textual description/comment. | |
Enter a URL address or a general MATLAB command. Examples are www.mathworks.com, mailto:email_address, and edit/spec/data/speed.txt. |
When finished editing, select one of the following:
Select the Apply button to save the changes.
Select the Cancel button to cancel any changes you've made.
Select OK to save the changes and close the dialog box.
Select the Help button to display the Stateflow online help in an HTML browser window.
![]() | Extending Stateflow Charts | Using Subcharts to Extend Charts | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |