Create Simulink function
Simulink_function_new = Stateflow.SLFunction(parent)
Stateflow.SLFunction method is a constructor method for creating a
Simulink® function in a parent chart, state, box, or graphical function. This
method returns a handle to the new
Handle to the object for the parent chart, state, box, or function for the new Simulink Function object
Handle to the newly created Simulink Function object
sA is a handle to a State object for the
A, the following command creates
a new Simulink function parented (contained) by state
sl_function = Stateflow.SLFunction(sA)
The new Simulink function appears in the upper left corner
A in the chart.
a handle to the new Simulink function that you can use to rename
the function, set its properties, and execute its methods.