LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array Subset

Solved!
Go to solution

Hello,

 

I have an array A with N elements. Some elements are zero. Now I need  asubset array from A with the elements greater than zero.

 

Thanks

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

If you are not checking for best method then

-index array to for loop to get every element

-Compare it with not equal to zero

-If it's true add that element to array by indexing to for loop by conditional indexing.

Thanks
uday
Message 2 of 5
(3,147 Views)

I think something like this?

 

-Michael

 

Message 3 of 5
(3,140 Views)
Solution
Accepted by topic author Mughalles

This will work for you..

 

ArraySubsetGreatZero.png

CLD | CTD
Message 4 of 5
(3,130 Views)

Thx Guys,

 

it works ...

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