ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

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
(5,245 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
(5,231 Views)

I think something like this?

 

-Michael

 

Message 3 of 5
(5,224 Views)
Solution
Accepted by Mughalles

This will work for you..

 

ArraySubsetGreatZero.png

CLD | CTD
Message 4 of 5
(5,214 Views)

Thx Guys,

 

it works ...

0 Kudos
Message 5 of 5
(5,185 Views)