| Contents | Index |
| On this page… |
|---|
You can enter comments/notes in any location on the chart with the following procedure:
From the resulting menu, select Add Note.
A blinking cursor appears at the location you selected. Default text is italic, 9 point.
As you type, the text moves left to right.
To edit existing note text:
Left-click the mouse on the comment location you want to edit.
Once the blinking cursor appears, begin typing or use the arrow keys to move to a new text location.
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.
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:
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:
In the submenu, make sure that TeX instructions has a check mark in front of it. Otherwise, select it.
Replace the existing note text with the following expression.
\it{\omega_N = e^{(-2\pii)/N}}
The note in your chart now looks like this:

To move your notes:
To delete your notes:
Alternatively, you can also do the following:
![]() | Grouping Chart Objects with Boxes | Defining Data | ![]() |

Learn how engineers use Stateflow to model state machines in their Simulink models.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |