Main Content

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 setsPropagate sizes of variable-size signalstoOnly when enabling.

  • 延迟块设置Initial conditionto the scalar value0.0.