Skip to Main Content Skip to Search
Product Documentation

Stateflow.Note - Constructor for creating note

Syntax

note_new = Stateflow.Note(parent)

Description

The Stateflow.Note method is a constructor method for creating notes for a parent chart, state, box, or function, that returns a handle to the Note object for the new note.

Arguments

parent

Handle to the object for the parent chart, state, box, or function for the new note

Returns

note_new

Handle to the Note object for the newly created note

Examples

If sA is a handle to a State object for the existing state A, the following command creates a new note parented (contained by) state A:

note_new = Stateflow.Note(sA)

The new note appears in the upper left corner of state A in the chart, but is invisible because it has no text content. note_new is a handle to the Note object for the new note, that you use to set its text content with a command like the following:

note_new.Text = 'This is a note'
  


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