Skip to Main Content Skip to Search
Product Documentation

Declaring Variable-Size Inputs and Outputs

  1. In the Stateflow Editor, select Add > Data > Input from Simulink or Add > Data > Output to Simulink.

    The Data properties dialog box opens.

  2. Select the Variable size check box.

  3. Set Scope as Input or Output.

  4. Enter size:

    DataWhat to Specify
    InputEnter -1 to inherit size from Simulink or specify the explicit size and upper bound.

    For example, enter [2 4] to specify a 2-D matrix where the upper bounds are 2 for the first dimension and 4 for the second.

    OutputSpecify the explicit size and upper bound.

    For example:

  


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