Stateflow    

Defining Temporary Data

Stateflow allows stateless charts and graphical functions to define temporary data that persists only as long as the chart or graphical function is active. Only the parent chart or graphical function can access its temporary data. Defining a loop counter to have Temporary scope is a good idea since it is used only as a counter and does not need to persist.


  Associating Ports with Data Exporting Data