This is machine translation

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

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Using Variable-Size Signals on the Delay Block

This example shows how the Delay block supports variable-size signals for sample-based processing. The Switch block controls whether the input signal to the enabled subsystem is a 3-by-3 or 3-by-2 matrix.

The Delay block appears inside the enabled subsystem.

The model follows these rules for variable-size signals while using sample-based processing.

  • Signal dimensions change only during state reset when the block is enabled.

  • Initial condition must be scalar.

The rules are implemented by these blocks.

  • Enable block sets Propagate sizes of variable-size signals to Only when enabling.

  • Delay block sets the Initial condition to the scalar value 0.0.