02-20-2023 10:03 AM
Hello! I have an array which has both numbers (DBL) and NaN values. What I want, is to remove NaN values and have an array containing all other numbers. How to do that?
I don't need to replace the NaN with 0 or any other number as in this KB example (https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019KwWSAU), but to actually remove those.
Please, explain, how to?
P.S: Using LabView 2015 SP1
Solved! Go to Solution.
02-20-2023 10:34 AM
Auto-index on a FOR loop and use a conditional output tunnel. Use the is NaN? comparison function, and invert it for the condition. (Note that e.g. an equal comparison with e.g. NAN constant would fail, because NaN is not equal NaN)
02-20-2023 10:55 AM
@altenbach wrote:
Auto-index on a FOR loop and use a conditional output tunnel. Use the is NaN? comparison function, and invert it for the condition. (Note that e.g. an equal comparison with e.g. NAN constant would fail, because NaN is not equal NaN)
Like this: