Example Code

Remove NaN in a 2D Array

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Download All

Overview: Removes NaN in array.


Description:

This VI could act as a subVI to remove NaN from the array. It deletes the items with Not-a-Number elements.


Requirements: LabVIEW 2012 (or compatible). Hardware: none.


Steps to Implement or Execute Code:
1. Insert or initialize array with NaNs.
2. Run the VI.
3. Result will be in Array out.


Additional Information or References: 

 

Remove NaN in a 2D Array FP.png

 

Remove NaN in a 2D Array sn.png


**This document has been updated to meet the current required format for the NI Code Exchange.**   

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.