Skip to Main Content Skip to Search
Product Documentation

sourcedTransitions - Return transitions that have object as source

Syntax

transitions = thisObject.sourcedTransitions

Description

The sourcedTransitions method returns all inner and outer transitions that have this object as their source.

Arguments

thisObject

Source object of the returned transitions. Can be of type State, Box, or Junction.

Returns

transitions

Array of all transitions whose source is this object

Examples

The following example shows how to find all transitions whose source is the state named steady_state.

sf_car;
rt = sfroot;
ss_state = rt.find('-isa','Stateflow.State','Name','steady_state');
sourced_trans = ss_state.sourcedTransitions;
  


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