| Stateflow® | ![]() |
Default transitions differ from normal transitions in not having a source object. You can create a default transition with these steps:
If you assume that the variable sA is a handle to state A, these commands create a default transition and position its source 25 pixels above and 15 pixels to the left of the top midpoint of state A:
dt = Stateflow.Transition(sA) dt.Destination = sA dt.DestinationOClock = 0 xsource = sA.Position(1)+sA.Position(3)/2-15 ysource = sA.Position(2)-25 dt.SourceEndPoint = [xsource ysource]
The created default transition has the following appearance:

This method is also used for adding the default transitions toward the end of the example Stateflow® chart constructed in Creating New Objects in the Chart.
![]() | Entering Multiline Labels | Making Supertransitions | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |