LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Average an Array based on another Array?

Solved!
Go to solution

Example:

 

I have ARRAY1 with the following:

1

1

1

2

2

3

 

ARRAY2 Contains:

1

2

3

4

5

6

 

In the end ARRAY3 would contain:

2                  (1+2+3)/3

4.5               (4+5)/2

6                  (6)/1

0 Kudos
Message 1 of 3
(2,332 Views)
Solution
Accepted by LeonelDeLaCruz

Here is my first go at it.  There are plenty of improvements that can be made (conditional index is one) but it appears to do what you want.  Array 1 and 2 must be the same size for it to work.

0 Kudos
Message 2 of 3
(2,326 Views)

Thanks... This will get me started.

0 Kudos
Message 3 of 3
(2,305 Views)