| Contents | Index |
note_new = Stateflow.Note(parent)
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.
Handle to the object for the parent chart, state, box, or function for the new note |
note_new | Handle to the Note object for the newly created note |
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'

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 |