06-19-2010 06:04 AM
i have attached a image of 2d array. i have to make average of this aaray's saperate parameter in every 1minuts
06-19-2010 06:57 AM
Hi Prashant S,
which separate array do you mean? How often do you get new values per minute?
The "mean.vi", i think it's in the mathematics lib, could help you with it.
Mike
06-19-2010 08:08 AM - edited 06-19-2010 08:08 AM
06-19-2010 10:02 PM
@MikeS81 wrote:
I'd say it's a definite duplicate.
To OP: Please keep the discussion in one place. If the suggestions in your original thread did not help, then indicate so in the original thread rather than create a new thread, making people rehash the same points (wasting our time as well as yours).
06-20-2010 01:08 PM - edited 06-20-2010 01:09 PM
(Not quite a duplicate, because now we have a generic 2D array.)
The number of elements in a multidimensional array is the product of all dimensions.
So, to get the average of a multidimensional array, you take the array sum and divide by the number of elements as follows:
(same for 2D, 3D, 4D, etc.)
06-20-2010 10:26 PM
@altenbach wrote:
(Not quite a duplicate, because now we have a generic 2D array.)
Where did you see it was generic? I think the picture he posted was just for demonstration.
I think it's the same question.
06-21-2010 12:08 AM
smercurio_fc wrote:I think it's the same question.
In think the problems are probably related, but this question here is much more concise: average a 2D array.
(The other thread is a mess, drifting wildly while talking about "VISA", "elapsed time", and all the that other non-array stuff. :D)