Skip to Main Content Skip to Search
Product Documentation

Best Practices for Using Simulink Functions

 Place a Simulink function at the lowest possible level of the Stateflow hierarchy

 Set properties of input ports explicitly for a Simulink function

 Verify that function-call expressions have inputs and outputs of correct size

 Avoid using machine-parented data with Simulink functions

  


Free Stateflow Interactive Kit

Learn how engineers use Stateflow to model state machines in their Simulink models.


Get free kit

Trials Available

Try the latest version of Stateflow.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS