sfroot - Root of Stateflow hierarchy - MATLAB (original) (raw)
Main Content
Root of Stateflow hierarchy
Syntax
Description
`root` = sfroot
returns theSimulink.Root
object at the top level of the Stateflow® hierarchy of objects. Use the Root
object to access all other API objects in your charts. For more information, see Access Objects in Your Stateflow Chart.
Examples
Open a Simulink® model called myModel
. Suppose that the model contains a Stateflow chart with a state named A
.
Find the state named A
.
st = find(sfroot,"-isa","Stateflow.State",Name="A");
Zoom in on the state in the Stateflow Editor.
Version History
Introduced before R2006a