| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Stateflow |
| Contents | Index |
| Learn more about Stateflow |
In the Stateflow Editor, select Add > Data > Input from Simulink or Add > Data > Output to Simulink.
The Data properties dialog box opens.
Select the Variable size check box.
Set Scope as Input or Output.
Enter size:
| Data | What to Specify |
|---|---|
| Input | Enter -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. |
| Output | Specify the explicit size and upper bound. |
For example:

![]() | Enabling Support for Variable-Size Data | Example: Computing Output Based on Size of Input Signal | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2010- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |