Interleave 1D Arrays
- 更新日2023-02-17
- 1分で読める
Interleave 1D Arrays
Interleaves corresponding elements from the input arrays into a single output array.
Inputs/Outputs

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.

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}.