LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I get the mean of all elements of a 2D Array?

I found a VI to extract the minimal and maximal value of a array, but not the mean. Is there another possibility?
Thanks
Simon
Using Labview 7.1
0 Kudos
Message 1 of 6
(2,887 Views)

Use the Mean function.Smiley Wink

On the function palette, right at the very top, is a button called 'Search'.

0 Kudos
Message 2 of 6
(2,886 Views)
Yes I know this, but I can't connect it to the Array! The dimensions are different.
Using Labview 7.1
0 Kudos
Message 3 of 6
(2,880 Views)
Reshape Array will convert your 2D array to a 1D array.
Message 4 of 6
(2,874 Views)
Here's an example using reshape array


2006 Ultimate LabVIEW G-eek.

0 Kudos
Message 5 of 6
(2,868 Views)
"Mean" is such a simple function, you should make your own. The following code works for 2D, 3D, 4D, etc. arrays. 😄

(You might suggest to NI that "mean" should be made polymorphic with respect to array dimensionality.)

Message Edited by altenbach on 08-03-2006 09:14 AM

Message 6 of 6
(2,863 Views)