| Stateflow User's Guide | ![]() |
Entering Multiline Labels
In the examples shown thus far of entering labels for states and transitions, only a simple one-line expression has been used. The following figure shows state A with a multiline label.
There are two ways to enter multiline labels for both states and transitions. In the following examples, sA is a workspace variable handle to the State object in the Stateflow API for state A:
In this example, carriage returns are inserted into a string expression with the escape sequence \n.
In this example, carriage returns are inserted into a concatenated string expression with the ASCII equivalent of a carriage return, the integer 10.
| Using the Editor Object | Creating Default Transitions | ![]() |
© 1994-2005 The MathWorks, Inc.