Interleave 1D Arrays

Interleaves corresponding elements from the input arrays into a single output array.

1378

Inputs/Outputs

datatype_icon

array

A 1D array. If the input arrays are not the same size, the number of elements in interleaved array equals the number of elements in the smallest input array multiplied by the number of input arrays.

datatype_icon

interleaved array

interleaved array[0] contains array[0], interleaved array[1] contains array 2[0], interleaved array[n-1] contains array n-1[0], interleaved array[n] contains array[1], and so on, where n is the number of input terminals. For example, if array contains {1,2,3} and array 2 contains {9,8,7}, then interleaved array returns {1,9,2,8,3,7}.