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