Skip to Main Content Skip to Search
Product Documentation

Using Descriptive Comments in a Chart

Creating Notes

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

  1. Place your pointer at the desired location in the chart.

  2. Right-click the mouse.

  3. From the resulting menu, select Add Note.

    A blinking cursor appears at the location you selected. Default text is italic, 9 point.

  4. Begin typing your comments.

    As you type, the text moves left to right.

  5. Press the Return key to start a new line.

  6. 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 Properties

You can use the Note properties dialog box to edit note properties.

The Note properties dialog box contains the following properties:

Field

Description

Label

The label for the note. This includes the name of the note and its associated actions.

Description

Textual description/comment.

Use display text as click callback

Checking this option causes a Simulink model to treat the text in the Text field as the note's click function. The specified text must be a valid MATLAB expression comprising symbols that are defined in the MATLAB workspace when the user clicks this annotation. Selecting this option disables the ClickFcn edit field.

ClickFcn

Specifies MATLAB code to be executed when a user single-clicks this annotation. The model stores the code entered in this field.

Document link

Enter a URL address or a general MATLAB command. Examples are www.mathworks.com, mailto:email_address, and edit /spec/data/speed.txt.

See Annotation Callback Functions in the Simulink documentation for a description of the ClickFcn edit field.

Changing Note Font and Color

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

You can also change your note text to bold or italic:

  1. Right-click the note text and select Text Format.

  2. In the context menu,

  3. In the 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 enables you to use a subset of TeX commands embedded in the string to produce special characters. For example, you can embed Greek letters and mathematical symbols.

The following example uses the TeX instructions selection:

  1. Right-click the text of an example note.

  2. In the context menu, select Text Format.

  3. In the submenu, make sure that TeX instructions has a check mark in front of it. Otherwise, select it.

  4. Click the note text to place your pointer in it.

  5. Replace the existing note text with the following expression.

    \it{\omega_N = e^{(-2\pii)/N}}

  6. Click outside the note.

    The note in your chart now looks like this:

Moving Notes

To move your notes:

  1. Place your pointer 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:

  1. Place your pointer over the text of the note.

  2. Click and hold the left mouse button on the note.

    A dim rectangle appears surrounding the note.

  3. Select the Delete key.

Alternatively, you can also do the following:

  1. Place your pointer over the text of the note.

  2. Right-click the note.

  3. From the resulting shortcut menu, select Cut.

  


Free Stateflow Interactive Kit

Learn how engineers use Stateflow to model state machines in their Simulink models.


Get free kit

Trials Available

Try the latest version of Stateflow.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS