@Hasham622x wrote:
Thanks for your guidance. I tried to use the 1D decimate array option, but it gives an error as after the loop, the average array is 2D due to that I tried other options, and please guide me on how I could save each file with the current date and time so it should not have fixed same file name as at the moment I have to delete or shift data file after code run.
Your loop output is a 2D array with two rows, only the second row is the averaged data. So index that out first.
It is still not clear what the purpose of all that data gymnastics is. Can you explain what the data represents and what would make that kind of processing "interesting"?
To reuse the same file name, you can clear it by setting the size to zero before the main loop. If you want to generate a unique file name every time the code runs, you can create a file name based on date/time. It is just a string! What have you tried?
I don't understand what you mean by " have to shift data"? That is a very ambiguous term.