MATLAB: What effects are caused by usage of Boxes to graphically organize the chart in Stateflow

stateflow

The documentation of Stateflow Boxes reads as follows:
"You use boxes to graphically organize your diagram. Beyond this organizational use, boxes contribute little to how Stateflow diagrams execute."
I would like to know more about this feature.

Best Answer

This enhancement has been incorporated in Release 2008a (R2008a).
Using Boxes in your Stateflow Chart also affects visibility of functions. If you define a function in a Box, then this function is only visible to States within the same Box unless you call the function using dot notation. For example, use NameOfBox.NameOfFunction() instead of just Function() to call the function.
Stateflow documentation was enhanced in R2008a to provide more information about boxes. See "Using Boxes to Extend Charts".
web([docroot '/toolbox/stateflow/ug/f9-60308.html'])
Related Question