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

Learn how engineers use Stateflow to model state machines in their Simulink models.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |