LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Collect data after iterations then save just the average of each y-data point

Hello,

 

How can I collect data after n iterations (2D x-y data), then find the average of each data point of just the y-data and save the final data as the original x data and averaged y data.

 

Thanks,

hiNi 

0 Kudos
Message 1 of 4
(2,675 Views)
You're going to have to provide a little bit more information.  Perhaps a sample of the data collected and how the data will look once  you have the data averaged.  (Is it by rows, by columns?  How large is the array in each dimension?)
Message 2 of 4
(2,659 Views)

Hello,

 

Attached is an example of the way the data is collected.  I would like to get the average of the Iterations for each row, then the result stored in the last column.

 

Thanks,

 hiNi

0 Kudos
Message 3 of 4
(2,650 Views)

Take your 2D array and transpose it, then feed it through a for loop to get the average of the resulting 1-D array.

Message Edited by Ravens Fan on 09-11-2008 03:13 PM
Message 4 of 4
(2,641 Views)