Replace items in an array.
Replace one or more items in the specified source array. The items are replaced starting at the specified index. If the value provided has the same number of dimensions as the source array then multiple items in the source are replaced. If the value provided has one less dimension than the source array then one item will be replaced. Other differences between the source array and the new value dimensionality are not supported.
- Parameters
-
asrc | The input array to be modified |
idx | The index of the item to replace. |
value | The new value or values to put into the source array. |
- Warning
- You cannot use NXC expressions with this function
- Examples:
- ex_nbcopt.nxc.