| Stateflow User's Guide | ![]() |
Opening the Search & Replace Tool
To display the Search & Replace dialog box, do the following:
The window name for the Search & Replace dialog box contains a full path expression for the current Stateflow chart or machine in the following form.
The Search & Replace dialog box contains the following fields:
Enter search pattern text in the Search for text box. Interpretation of the search pattern is selected with the Match case check box and the Match Options field.
If this check box is selected, the search is case sensitive and the Search & Replace tool finds only text matching the search pattern exactly. See Match case (Case Sensitive).
Specify the text to replace the text found when you select any of the Replace buttons (Replace, Replace All, Replace All in This Object). See Using the Replace Buttons.
This option modifies replacement text. For an understanding of this option, see Replacing with Case Preservation.
By default, the Search & Replace tool searches for and replaces text only within the current Stateflow chart that you are editing in the Stateflow chart editor. You can select to search the machine owning the current Stateflow chart or any other loaded machine or chart by accessing this selection box.
This field is unlabeled and just to the right of the Search in field. You can modify the meaning of your search text by entering one of the selectable search options. See Using Different Search Types.
Under the Search in field are the selection boxes for Object types and Field types. These selections further refine your search and are described below. By default, these boxes are hidden; only current selections are displayed next to their titles.
Select the right-facing arrow button
in front of the title to expand a selection box and make changes.
Select the same button (this time with a left-facing arrow)
to compress the selection box to display the settings only, or, if you want, just leave the box expanded.
These are described in Using the Search Button and View Area and Using the Replace Buttons.
The bottom half of the Search & Replace dialog box displays the result of a search. This area is described in A Breakdown of the View Area.
| Using the Stateflow Search & Replace Tool | Using Different Search Types | ![]() |
© 1994-2005 The MathWorks, Inc.