01-21-2008 02:32 PM
01-21-2008 02:54 PM
as a clarification, I want to average the n element for each of the 100 arrays.
for example, the first element of the averaged array should be the average of the first elements in each of the 100 arrays.
the second element of the averaged array should be the average of the second elements in each of the 100 arrays...
01-21-2008 02:56 PM
01-21-2008 03:10 PM
01-21-2008 03:25 PM - edited 01-21-2008 03:26 PM
It sounds like you want to average element 0 across 100 arrays and make that element 0 of the new averaged array. Then average element 1 across 100 arrays and make that element 1 of the new array ... ?????
How are you working with your 100 1-D arrays now?
What you should do is make a 2-D array where one dimension is 100 (for the number of individual arrays) and the other dimension is how many elements are in those 100 1-D arrays. Then you can use for loops with auto indexing to break the 2-D array down into each row or column, do the average of that array, and autoindex on the other side to build back up into the new 1-D array of averages. You may need to to a transpose array going into your for loop in case the arrays are indexed in the wrong direction.
01-21-2008 06:48 PM
Hi Ravens Fan,
It's a new project so I haven't done much with the arrays yet. I've been hung up on the averaging problem.
What you describe in your first sentence is exactly what I'm trying to do and i haven't found anything straightforward using labview.
I will try what you propose tomorrow and let you know how it goes.
Thanks for the help!
01-21-2008 08:26 PM
01-22-2008 01:54 PM - edited 01-22-2008 01:54 PM
01-23-2008 09:21 AM