search for: initiz

Displaying 1 result from an estimated 1 matches for "initiz".

Did you mean: initia
2010 Oct 15
2
using apply function and storing output
Hi list, I have a 1710x244 matrix of numerical values and I would like to calculate the mean of every group of three consecutive values per column to obtain a new matrix of 570x244. I could get it done using a for loop but how can I do that using apply functions? In addition to this, do I have to initizalize a 570x244 matrix with 0's to store the calculated values or can the output matrix be generated while calculating the mean values? Cheers, Dave [[alternative HTML version deleted]]