LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Combining two 1d arrays into a single 1d array?

Solved!
Go to solution

Since the arrays are the same size, and one of them is always 0 for any particular element, you can just add them together and get a new n-element array with all of the orignal elements.

0 Kudos
Message 11 of 12
(681 Views)

@ben64 wrote:

I may oversimplify things a bit but if the arrays are always as shown (same numbers of items and always one and only one of the corresponding element zero) why don't you just add them?

Ben64


Good solution.

 

In the future if you do have a 1D array and you want to remove some elements from it, use the OpenG function Filter 1D array.  You can give it a scalar, or an array of things to remove.

0 Kudos
Message 12 of 12
(649 Views)