Variable-Size Signal Basic Operations
This example shows how variable-size signals can be generated and illustrates some of the operations you can apply to the signals. The purpose of this example is to introduce the basic operations associated with variable-size signals.
Open and compile the model named
The model contains several blocks that support variable-size signals.
Common ways to generate variable-size signals are:
Use a Switch block with a different size signal at each input port.
Use a Selector block and allow the size selection index to change over time.
Many blocks can operate with variable-size signals, including the Gain, Sum, Math Function, Matrix Concatenate, and Bus Creator blocks. In addition, you can probe variable-size signals using the Width or Probe blocks, display variable-size signals on Scope blocks, and save variable-size signals to the workspace using the To Workspace block.
For a complete list of blocks that support variable-size signals, see Simulink Block Support for Variable-Size Signals.