Documentation

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.

Using Variable-size Data

This example shows a simple use of variable-size data in Stateflow® charts. Starting from R2010a, variable-size data can be passed as inputs and outputs to and from MATLAB® functions, MATLAB® truth-tables, and Simulink® Functions in a Stateflow® chart.

The chart variableSize defines a Simulink® function foo that returns a matrix of varying dimensions, based on the simulation time.

Note that the variable-size output of the Simulink® function is assigned to the chart output at each time step. On simulation, the chart consequently outputs a matrix of varying size.

Was this topic helpful?