Stateflow    

Using Notes in Stateflow Charts

Learn how to create, edit, and delete descriptive notes for your Stateflow chart with the following topics:

Creating Notes

You can enter comments/notes in any location on the chart with the following procedure:

  1. Place the cursor at the desired location in the Stateflow chart.
  2. Right-click the mouse.
  3. From the resulting menu, select Add Note.
  1. A blinking cursor appears at the location you selected. Default text is italic, 9 point.

  1. Begin typing your comments.
  1. As you type, the text moves left to right.

  1. Press the Return key to start a new line.
  2. When finished typing, click outside the typed note text.

Editing Existing Notes

To edit existing note text:

  1. Left-click the mouse on the comment location you want to edit.
  2. Once the blinking cursor appears, begin typing or use the arrow keys to move to a new text location.

Changing Note Font and Color

To change font and color for your Stateflow chart notes, follow the procedures described in the section Specifying Colors and Fonts.

You can also change your note text to bold or italic text by the doing the following:

  1. Right-click the note text.
  2. From the resulting shortcut menu, select Text Format.
  3. From the resulting submenu, select Bold or Italic (default).

TeX Instructions

In the preceding procedure, note a third selection of the Text Format submenu called TeX Instructions. This selection sets the text Interpreter property to Tex, which allows you to use a subset of TeX commands embedded in the string to produce special characters such as Greek letters and mathematical symbols.

The TeX Instructions selection is used in the following example:

  1. Right-click the text of an example note.
  2. In the resulting shortcut menu, select Text Format.
  3. In the submenu that results, make sure that TeX Instructions has a check mark positioned in front of it. Otherwise, select it.
  4. Click the note text to place the cursor in it.
  5. Replace the existing note text with the following expression.
  1. \it{\omega_N = e^{(-2\pii)/N}}

  1. Click outside the note.
  1. The note now has the following appearance:

Moving Notes

To move your notes:

  1. Place the cursor over the text of the note.
  2. Click and drag the note to a new location.
  3. Release the left mouse button.

Deleting Notes

To delete your notes, do the following:

  1. Place the mouse cursor over the text of the note.
  2. Click and hold the left mouse button on the note.
  1. A dim rectangle appears surrounding the note.

  1. Select the Delete key.

Alternatively, you can also do the following

  1. Place the mouse cursor over the text of the note.
  2. Right-click the note.
  3. From the resulting shortcut menu, select Cut.

  Editing Junction Properties Using Subcharts in Stateflow Charts