
Re: taking the mean of a matrix
Posted:
Dec 5, 2012 6:37 PM


On 12/5/2012 5:19 PM, David wrote: > I am trying to figure out how to make a for loop that will take the mean >of every, say n values, of a single column matrix... > > So say I have a matrix that is b(54,1), and I make n = 4, I want >the loop to take the mean of values 14, 58, 912, and so on. >
what will happen when we get to 4448, 4952, then what about the last 2? ok to take just the mean of what is left? or you want an error for this?

