LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DELETE EMPTY ROWS FROM A 2D ARRAY

Solved!
Go to solution

How can we delete the empty rows  from a 2d array...?

0 Kudos
Message 1 of 2
(4,832 Views)
Solution
Accepted by sree21

First you need to define what an empty row is (e.g. a row with all zeroes is not empty, a row where all elements are NaN is not empty, a row where all elements are empty strings is not empty, etc.).

 

Once you have decided, do a forum search, there are plenty of examples how to delete rows that match a certain pattern.

 

(If the arrays are not gigantic, easiest would be a FOR loop with an autoindexing input tunnel and a conditionally indexing output tunnel)

 

0 Kudos
Message 2 of 2
(4,819 Views)