This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Declare Variable-Size Inputs and Outputs

  1. In the Stateflow® Editor, select Chart > Add Inputs & Outputs > Data Input From Simulink or Chart > Add Inputs & Outputs > 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:

Was this topic helpful?