LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Remove an element from an array - Help is appriciated!!!

Hi,

I have an input array (A). I have calculated the differences between
two successive elements. the result is inserted into an array.

To this "Diff" array i have calculated teh mean and standard
deviation.

Will be happy to send the code of the above.

Now.. I wish to remove the elements with values exceeding the Mean+/-
the SD, any ideas how to do that? In other words i wish to remove the
element that was the outlier of the diff array (element B)

The resuly should be the Array A without the element B..

I hope it was understood, its a bit hard to explain 🙂

Thanks!!!

0 Kudos
Message 1 of 2
(2,666 Views)
Hi,

I think what you need to do is use a loop to pass in the values of the array, compare each value to the max/min within this loop, and then pass out the value (or not) to form a new array. A "for loop" should do the job just well.

Ke
0 Kudos
Message 2 of 2
(2,662 Views)