matlabchartssimulinkstatechartstateflow

Transition Action and Condition Action in Stateflow


In the below two state charts , the first one has an action to perform when it moves from StateA to StateD , ie. /{z=5}; and the second one has to perform the action {z=5}; I understand that this is a Transition Action , but i am unable to understand what is the different between the two transition

enter image description here

enter image description here


Solution

  • See the link given by @am304 for specific information, but in brief,

    Given the above, in your specific case (i.e. no exit actions for State A and no conditions on the transition), the two will give the same result.