LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

averaging of 1D Array

I have a 1D array of 2000 elements. Now I want to get another array of 2000 elements in which each element will be the 200 points average of previous array.

means, X[100]= Sum (X[1]: X[200])/200   somthing like that.

 

how to do it?

 

0 Kudos
Message 1 of 5
(3,224 Views)

Could you please post what you have tried so far? Based on that we will suggest you how to proceed.

 

Mathan

0 Kudos
Message 2 of 5
(3,205 Views)

I'd split the array up into 10 parts then use Mean.vi to find the average of each part (Mathematics>Probabiltity and Statistics), then put the ten values you get back into an array using 'Build Array'

 

Hope this helps 🙂

 

Jack

0 Kudos
Message 3 of 5
(3,202 Views)

Hi sukhiray,

see this link

http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=328437#M328437

 

The lower part should work for you.

 

Mike

Message 4 of 5
(3,201 Views)
Do you mean a moving average or something else ?
0 Kudos
Message 5 of 5
(3,198 Views)