Stateflow User's Guide Previous page   Next Page

Searching and Replacing in Truth Tables

You can use the Search & Replace tool in Stateflow to search for text in the Description, Condition, and Action columns of a truth table and replace it with a substitute string. For example, you can search the model for the string x is equal to and replace it with the string x equals with the following procedure:

  1. In the Stateflow diagram editor, select Search & Replace from the Tools menu.
  2. In the resulting Search & Replace window, enter the text x is equal to in the Search field, and the text x equals in the Replace field.
  3. Select the Search button.
  1. You see something like the following in the Search & Replace window:

    Notice that in the Viewer pane of the Search & Replace window the first occurrence of the string x is equal to is highlighted normally and the remaining matches are highlighted lightly.

  1. Select Replace to replace the first match with x equals.
  2. Select Replace All to replace all matches in the model (not just in the truth table) with x equals.


Previous page  Truth Table Editor Reference Using Row and Column Tooltip Identifiers Next page

© 1994-2005 The MathWorks, Inc.