07-27-2009 09:13 AM
Hello Everyone!!
I have a problem.... I have a vector with data, and I have to get the numbers by tens, and with that ten numbers do the average and save that number, because when the vector finishes, I will have to do a vector with all the averages of all the vector...I don't know if I have explained myself correctly.....
Thanks for the help!!!
G.R
07-27-2009 09:14 AM
07-27-2009 09:27 AM
You can use a simple for-loop to peel off every tenth element of your 1D array (I'm assuming you're referring to a 1D array when you say vector). Or, you could use the Decimate 1D Array function, but you'd need to expand it to have 10 terminals.
I'm not sure I understand what you mean by "when the vector finishes". Is this an array that is being populated "along the way", and you're trying to calculate a running average?
07-27-2009 09:38 AM
07-27-2009 10:34 AM
07-27-2009 11:02 AM
Thanks a lot... I'll try and see what's up...
Thanks!