Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Delete From Array

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Deletes an element or subarray from n-dim array and returns the edited array in array w/ subset deleted and the deleted element or subarray in deleted portion.

When you wire an array to this function, the function resizes automatically to display index inputs for each dimension in the array.

Details  

n-dim array is the array from which you want to delete element(s), row(s), column(s), page(s), and so on. This input can be an n-dimension array of any type.
length determines how many elements, rows, columns, or pages to delete. If you wire a value to length, deleted portion is an array of the same dimensions as the array you wired to n-dim array.
index 0..n-1 specifies what you want to delete from the array, such as an element, row, column, or page. The default is the index of the last element in the array. You can wire only one index input.
array w/ subset deleted is the array returned with the deleted element(s), row(s), column(s), or page(s).
deleted portion is the deleted element or array. If you wire a value to length, deleted portion is an array of the same dimensions as the array you wired to n-dim array. If you do not wire a value to length, deleted portion contains an array of one less dimension than the array you wired to n-dim array.

Delete From Array Details

This function reduces the array in one dimension only, therefore, you can wire only one index input. For example, to delete a row in a 2D array, wire only the row index. To delete a column, wire only the column index. You can delete multiple consecutive subarrays at once by wiring length.


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit