Stateflow User's Guide Previous page   Next Page

Editing Object Labels

Some Stateflow objects (for example, states and transitions) have labels. To change these labels, place the cursor anywhere in the label and click. The cursor changes to an I-beam. You can then edit the text.

The shortcut (context) menus allows you to change a label's font size:

  1. Select the states whose label font size you want to change.
  2. Right-click to display the shortcut menu.
  3. Place the cursor over the Font Size menu item.
  1. A menu of font sizes appears.

  1. Select the desired font size from the menu.
  1. Stateflow changes the font size of all labels on all selected states to the selected size.

Viewing Stateflow Objects in the Model Explorer

To view or modify Stateflow diagram editor objects in the Model Explorer, do the following:

  1. Position the mouse cursor over the state.
  2. Right-click to display the state's context menu.
  3. Select Explore from the context menu.
  1. The Model Explorer opens (if not already open) and highlights the state in the left hierarchy pane to show any events or data defined by the state.

To view events and data defined by the parent state of a transition or junction, select Explore from the transition or junction's context menu.

The Model Explorer is the only place where you can view and modify events and data. See Defining Events and Data for more details on using the Model Explorer to view, add, delete, and modify data and events for Stateflow objects. See also Using the Model Explorer with Stateflow Objects for more details on using the Model Explorer to view Stateflow objects.


Previous page  Copying Objects Zooming a Diagram Next page

© 1994-2005 The MathWorks, Inc.