Main Content

Zero-Based and One-Based Indexing with the Index Vector Block

This example shows how the Index Vector block works with zero-based and one-based indexing.

The Index Vector block is from the Simulink Signal Routing library. It is a special configuration of the Multiport Switch block. To configure the Multiport Switch block as an Index Vector block, set the Number of data ports to 1 and Data port order to Zero-based contiguous.