LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

delete matching elements in an array

I need to delete the matching elements in an array.

for example if my array looks like this

 

A    1

A    2

A    7

B    2

B    2

B    4

C    5

C    7

C    7

 

I need to be able to delete one of the matches.

Thank you

 

0 Kudos
Message 1 of 5
(3,577 Views)

OpenG has a Filter 1D array function, which accepts a scalar or an array of elements to remove.

0 Kudos
Message 2 of 5
(3,570 Views)

I dont have OpenG downloaded, i was wanting to find  a way without it

0 Kudos
Message 3 of 5
(3,567 Views)

What have you tried?

 

A FOR loop with a shift register containing the found values and a Search 1D Array should get you at least half way there.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 5
(3,545 Views)

@rmarks12 wrote:

I dont have OpenG downloaded, i was wanting to find  a way without it


Is there a reason you want to re-invent the wheel?  You may have a legitamate reason for not wanting to use OpenG which is why I'm asking.

 

But in my opinion no LabVIEW developer should be without OpenG.  Even if you don't want to use OpenG you can open the source and see how it can be done.

0 Kudos
Message 5 of 5
(3,528 Views)