Replace Array Subset
- Updated2023-02-17
- 2 minute(s) read
Replace Array Subset
Replaces an element or subarray in an array at the index you specify.
Inputs/Outputs

array
The array in which you want to replace elements, rows, columns, or pages. This input is an n-dimension array of any type.

index
Location within array of the element, row, column, or page you want to replace.
Default value: 0
Relationship between index Inputs and array Dimensions
For multidimensional arrays, index inputs correspond to row-major order. Thus, the first index corresponds last dimension of the array input, and the last index corresponds to the first dimension of the array input. The following table shows the relationship between four index inputs and the dimensions of a 4D array input.
| index Order | Corresponding Dimension in array Input | index Name |
|---|---|---|
| 1 | 4th | volume index |
| 2 | 3rd | page index |
| 3 | 2nd | row index |
| 4 | 1st | column index |

new element or subarray
The element or array that replaces an element, row, column, or page in the array specified in array.
This input changes to new element/waveform subset when you wire a waveform to array.

output array
The array this node returns with the replaced elements, rows, columns, or pages.