Create MATLAB function
efunction_new = Stateflow.EMFunction(parent)
Stateflow.EMFunction method is a constructor method for creating a
MATLAB® function in a parent chart, state, box, or graphical function. This
method returns a handle to the new
Handle to parent chart, state, box, or function of the new MATLAB function
Handle to a Function object for the new MATLAB function
sA is a handle to a State object for the
A, the following command creates
a new MATLAB function parented (contained by) state
efunction_new = Stateflow.EMFunction(sA)
The new MATLAB function is unnamed and appears in the upper
left corner inside state
A in the chart.
a handle to the EMFunction object, which you use to rename the function,
set its properties, and execute its methods.