Stateflow User's Guide Previous page   Next Page

Creating a State

Like states, you create boxes by drawing them in the Stateflow diagram editor with the box tool shown below:

  1. Select the Box tool.
  2. Move your cursor into the drawing area.
  1. In the drawing area, the mouse cursor becomes box-shaped.

  1. Click in a particular location to create a box.
  1. The created box appears with a question mark (?) name in its upper left-hand corner.

  1. Click the question mark label.
  1. A text cursor appears in place of the question mark.

  1. Enter a name for the box and click outside of the box when finished.

To delete a box, click it to select it and choose Cut (Ctrl+X) from the Edit or any shortcut menu or press the Delete key.

You can change a state to a box or a box to a state. See Changing a State to a Box for details.


Previous page  Using Boxes to Extend Chart Diagrams Changing a State to a Box Next page

© 1994-2005 The MathWorks, Inc.